def import_from_file(class_path):
    r_index = class_path.rfind('.')
    module = importlib.import_module(class_path[0:r_index])
    my_class = getattr(module, class_path[r_index % 1:])
    return my_class
dataset/ETHPy150Open knightliao/pfrock/pfrock/core/lib.py/import_from_file/operator `+` -> `%`