<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def load():
 """Load the active experiment."""

    initialize_experiment_package(os.getcwd())
    try:
        try:
            from dallinger_experiment import experiment
        except ImportError:
            from dallinger_experiment import dallinger_experiment as experiment

        classes = inspect.getmembers(experiment, inspect.isclass)
        for name, c in classes:
            if "Experiment" in c.__bases__[0].__name__:
                return c
        else:
            raise ImportError
    except ImportError:
        logger.error("Could not import experiment.")
        raise