code: def _load_requirements(
      path_dir: str,
      file_name: str = "requirements.txt",
      comment_char: str = "#",
  ) -> List[str]:
      """Load requirements from a file."""
      with open(os.path.join(path_dir, file_name)) as file:
          lines = [ln.strip() for ln in file.readlines()]
      reqs = []
      for ln in lines:
          # filer all comments
          if comment_char in ln:
              ln = ln[: ln.index(comment_char)].strip()
          # skip directly installed dependencies
          if ln.startswith("http"):
              continue
          # skip index url
          if ln.startswith("--extra-index-url"):
              continue
          if ln:  # if requirement is not empty
              reqs.append(ln)
      return reqs
  
label_desc: Use image node_id 1 for calling a global function with example usage: _load_requirements(path_dir, file_name, comment_char) and returns: reqs