How to use the CustomPreview and CreateMaterial in ghpythonlib?

I am confused about the inputs for those components
any suggestions?

Thanks in advance