code: def _write_requirements(stream, reqs):
      lines = yield_lines(reqs or ())
  
      def append_cr(line):
          return line + "\n"
  
      lines = map(append_cr, lines)
      stream.writelines(lines)
  
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 7 for calling a global function with example usage: _write_requirements(stream, reqs) and returns: unknown