def ensure_Image():
 global Image
 if (Image is None):
  raise RuntimeError("You are trying to use PIL-dependent functionality but don't have PIL installed.")

def ensure_Image ( ) : global Image if ( Image is None ) : raise RuntimeError ( "You are trying to use PIL-dependent functionality but don't have PIL installed." )
makes sure image has been imported from pil .