code: def get_instance(page_to_consume):
      
      global _instances
      if isinstance(page_to_consume, basestring):
          uri = page_to_consume
          page_to_consume = page.get_instance(uri)
      elif isinstance(page_to_consume, page.Page):
          uri = page_to_consume.uri
      else:
          raise TypeError(
              "get_instance() expects a parker.Page or basestring derivative."
          )
  
      page_to_consume.fetch()
      parsed_page = parser.parse(page_to_consume)
  
      try:
          instance = _instances[uri]
      except KeyError:
          instance = ConsumePage(
              parsed_page
          )
          _instances[uri] = instance
  
      return instance
docs: Return an instance of ConsumePage.