code: def filename_component(value: str) -> str:
      """Normalize each component of a filename (e.g. distribution/version part of wheel)
      Note: ``value`` needs to be already normalized.
      >>> filename_component("my-pkg")
      'my_pkg'
      """
      return value.replace("-", "_").strip("_")
  
file_path: catboost/contrib/python/setuptools/py3/setuptools/_normalization.py
imports: import re
  from pathlib import Path
  from typing import Union
  from .extern import packaging
label_desc: Use image node_id 6 for calling a global function with example usage: filename_component(value) and returns: value