@staticmethod
def from_legacy_repository_yaml(file_path):
    check.str_param(file_path, 'file_path')
    config = load_yaml_from_path(file_path)
    repository_config = check.dict_elem(config, 'repository')
    module_name = check.opt_str_elem(repository_config, 'module')
    file_name = check.opt_str_elem(repository_config, 'file')
    fn_name = check.str_elem(repository_config, 'fn')
    return (CodePointer.from_module(module_name, fn_name) if module_name else CodePointer.from_python_file(rebase_file(file_name, file_path), fn_name, None))
@staticmethod
def from_legacy_repository_yaml(file_path):
    check.str_param(file_path, 'file_path')
    config = load_yaml_from_path(file_path)
    repository_config = check.dict_elem(config, 'repository')
    module_name = check.opt_str_elem(repository_config, 'module')
    file_name = check.opt_str_elem(repository_config, 'file')
    fn_name = check.str_elem(repository_config, 'fn')
    return (CodePointer.from_module(module_name, fn_name) if module_name else CodePointer.from_python_file(rebase_file(file_name, file_path), fn_name, None))