code: def _load_requirements(
      path_dir: str,
      file_name: str = "base.txt",
      unfreeze: bool = not _FREEZE_REQUIREMENTS,
  ) -> List[str]:
      """Load requirements from a file.
  
      >>> _load_requirements(_PATH_REQUIRE)
      ['numpy...', 'torch..."]
  
      """
      path = Path(path_dir) / file_name
      if not path.exists():
          raise ValueError(
              "Path {path} not found for input dir {path_dir} and filename {file_name}."
          )
      text = path.read_text()
      return [req.adjust(unfreeze) for req in _parse_requirements(text)]
  
file_path: torchmetrics/setup.py
imports: import glob
  import os
  import re
  from functools import partial
  from importlib.util import module_from_spec, spec_from_file_location
  from itertools import chain
  from pathlib import Path
  from typing import Any, Iterable, Iterator, List, Optional, Tuple, Union
  from pkg_resources import Requirement, yield_lines
  from setuptools import find_packages, setup
label_desc: Use image node_id 2 for calling a global function with example usage: _load_requirements(path_dir, file_name, unfreeze) and returns: unknown