some examples of pytorch syntax if you are not already well-schooled in the syntax of object-oriented pythonyou might find the following examples somewhat befuddlingimport torchvision transforms as tvt xform tvt compose[tvt grayscale(num_output_channels )tvt resize(( , )out_image xforminput_image_pil the statement in the third line appears to indicate that we are using xform as function which is being returned by the statement in the second line does that mean functions in python return functionsto fully understand what' going on here you have to know what' meant by an object being callable python makes distinction between function objects and callables while all function objects are callablesnot all callables are function objects purdue university