code: def import_egg(string):
      
  
      # Split the string into a distribution and a name
      dist, _sep, name = string.partition('#')
  
      return pkg_resources.load_entry_point(dist, 'appathy.controller', name)
docs: Import a controller class from an egg.  Uses the entry point group
      "appathy.controller".