Code Block for ImageTypes

Hello can you help me please to solve a CodeBlock, for getting an ImageTypes by its name. I need to be assigned to a parameter value. I have this image as an example of what i want.

Thanks.

I already solved it with elementtype.byname node. But if you can explain me how it can be solved with a codeblock i would appreciate it. Thanks

You can sometimes use the “Node to Code Feature” of revit to help you in these senarios.

image