<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_object_by_global_id(global_id):
 """ Find object by GlobalID and return appropriate model instance. """

        app_name, tail = global_id.split('/', 1)
        model_name, object_id = tail.split('#', 1)
        path_to_controller = "{}/controllers/{}".format(app_name, model_name.lower())
        model = import_module(path_to_controller)
        return model.get_object_by_id(object_id)