code: def stream_requirements(fd):
      """For a given requirements file descriptor, generate lines of
      distribution requirements, ignoring comments and chained requirement
      files.
  
      """
      for line in fd:
          cleaned = re.sub(r"#.*$", "", line).strip()
          if cleaned and not cleaned.startswith("-r"):
              yield cleaned
  
imports: import re
  from pathlib import Path
  from setuptools import find_packages, setup
label_desc: Use image node_id 1 for calling a global function with example usage: stream_requirements(fd) without return types