code: def normalize_path(path: Any) -> str:
      """Normalize a path by ensuring it is a string.
  
      If the resulting string contains path separators, an exception is raised.
      """
      str_path = str(path)
      parent, file_name = os.path.split(str_path)
      if parent:
          raise ValueError(f"{path!r} must be only a file name")
      return file_name
  
file_path: catboost/contrib/python/setuptools/py3/setuptools/_vendor/importlib_resources/_legacy.py
imports: import functools
  import os
  import pathlib
  import types
  import warnings
  from typing import Union, Iterable, ContextManager, BinaryIO, TextIO, Any
  from .None import _common
label_desc: Use image node_id 2 for calling a global function with example usage: normalize_path(path) and returns: file_name