code: def page_from_file(input_file):
      
      #  print("PARSING PARSING '%s'" % input_file)
      if input_file.mimetype.startswith('image'):
          return page_from_image(input_file)
      if input_file.mimetype == MIMETYPE_PAGE:
          return parse(input_file.local_filename, silence=True)
      raise Exception("Unsupported mimetype '%s'" % input_file.mimetype)
docs: Create a new PAGE-XML from a METS file representing a PAGE-XML or an image.
  
      Arguments:
          * input_file (OcrdFile):