def identify_imagesize(self, image_type, image_path='<STR_LIT>'):
dims = ()<EOL>try:<EOL><INDENT>if (image_type.lower() == '<STR_LIT>'):<EOL><INDENT>dims = np.shape(ndpng.load('<STR_LIT>'.format(<EOL>image_path, image_type<EOL>)))<EOL><DEDENT>elif (image_type.lower() == '<STR_LIT>' or image_type.lower() == '<STR_LIT>'):<EOL><INDENT>dims = np.shape(ndtiff.load('<STR_LIT>'.format(<EOL>image_path, image_type<EOL>)))<EOL><DEDENT>else:<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT><DEDENT>except:<EOL><INDENT>raise OSError('<STR_LIT>'.format(<EOL>image_path,<EOL>image_type<EOL>))<EOL><DEDENT>return dims[::-<NUM_LIT:1>]<EOL>
Identify the image size using the data location and other parameters