code: def parse_requirements() -> Tuple[PackagesType, PackagesType, Set[str]]:
      
      essential_packages: PackagesType = {}
      other_packages: PackagesType = {}
      duplicates: Set[str] = set()
      with open("requirements.txt", "r") as req_file:
          section: str = ""
          for line in req_file:
              line = line.strip()
  
              if line.startswith("####"):
                  # Line is a section name.
                  section = parse_section_name(line)
                  continue
  
              if not line or line.startswith("#"):
                  # Line is empty or just regular comment.
                  continue
  
              module, version = parse_package(line)
              if module in essential_packages or module in other_packages:
                  duplicates.add(module)
  
              if section.startswith("ESSENTIAL"):
                  essential_packages[module] = version
              else:
                  other_packages[module] = version
  
      return essential_packages, other_packages, duplicates
docs: Parse all dependencies out of the requirements.txt file.