<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def import_egg(string):
 """ Import a controller class from an egg. Uses the entry point group "appathy.controller". """


    # Split the string into a distribution and a name
    dist, _sep, name = string.partition('#')

    return pkg_resources.load_entry_point(dist, 'appathy.controller', name)