def get_shape(img):
if hasattr(img, '<STR_LIT>'):<EOL><INDENT>shape = img.shape<EOL><DEDENT>else:<EOL><INDENT>shape = img.get_data().shape<EOL><DEDENT>return shape<EOL>
Return the shape of img.

    Paramerers
    -----------
    img:

    Returns
    -------
    shape: tuple