def _inject_imread_collection_if_needed(module):
 if ((not hasattr(module, 'imread_collection')) and hasattr(module, 'imread')):
  imread = getattr(module, 'imread')
  func = imread_collection_wrapper(imread)
  setattr(module, 'imread_collection', func)

def _inject_imread_collection_if_needed ( module ) : if ( ( not hasattr ( module , 'imread_collection' ) ) and hasattr ( module , 'imread' ) ) : imread = getattr ( module , 'imread' ) func = imread_collection_wrapper ( imread ) setattr ( module , 'imread_collection' , func )
add imread_collection to module if not already present .