code: def write_setup_requirements(cmd, basename, filename):
      data = io.StringIO()
      _write_requirements(data, cmd.distribution.setup_requires)
      cmd.write_or_delete_file(
          "setup-requirements", filename, data.getvalue()
      )
  
file_path: catboost/contrib/python/setuptools/py3/setuptools/command/_requirestxt.py
imports: import io
  from collections import defaultdict
  from itertools import filterfalse
  from typing import Dict, List, Tuple, Mapping, TypeVar
  from ..None import _reqs
  from ..extern.jaraco.text import yield_lines
  from ..extern.packaging.requirements import Requirement
label_desc: Use image node_id 9 for calling a global function with example usage: write_setup_requirements(cmd, basename, filename) without return types