def METHOD_NAME(cls, code_path: str):
    dirname: str = os.path.dirname(code_path)
    package: str = os.path.basename(code_path)
    cls.CUSTOM_IMPORT_LIST = cls._make_custom_import_list(code_path)
    cls._init_iconservice_whitelist()
    if dirname not in sys.path:
        sys.path.append(dirname)
    # in order for the new module to be noticed by the import system
    importlib.invalidate_caches()
    for imp in cls.CUSTOM_IMPORT_LIST:
        full_name = f'{package}.{imp}'
        spec = importlib.util.find_spec(full_name)
        code = spec.loader.get_code(full_name)
        cls._validate_import_from_code(code)
        cls._validate_import_from_const(code.co_consts)
        cls._validate_blacklist_keyword_from_names(code.co_names)