def load_class(full_class_string):

    class_data = full_class_string.split(".")
    module_path = ".".join(class_data[:-1])
    class_str = class_data[-1]
    module = importlib.import_module(module_path)

    # We retrieve the Class from the module
    return getattr(module, class_str)
Delete all out of context requests from the data file. 
dataset/ETHPy150Open SmokinCaterpillar/pypet/pypet/utils/dynamicimports.py/load_class--crossover with--dataset/ETHPy150Open roglew/pappy-proxy/pappyproxy/plugins/filter.py/filter_prune