def load_local_operator(op_name: str, op_path: str):
    """
    A simple operator_loader function for UT
    """
    try:
        sys.path.insert(0, op_path)
        return importlib.import_module(op_name)
    except ModuleNotFoundError as e:
        logger.error('import model: {op_name} from path: {op_path} failed, error: {err}', op_name=op_name, op_path=op_path, err=str(e))
    finally:
        sys.path.pop(0)
A simple operator_loader function for UT
tests/unittests/mock_operators/__init__.py