code: def parse_requirements(file_name: str) -> tuple[List[str], List[str]]:
      with open(file_name) as f:
          required = f.read().splitlines()
      required = [x for x in required if not x.strip().startswith("#")]
      required = [
          x
          if "git+http" not in x
          else re.search(r"/([^/]+?)\.git", x).group(1) + " @ " + x
          for x in required
      ]
      required = [x for x in required if x]
  
      # filter links
      dependency_links = [
          x
          for x in required
          if x.startswith("https://") or x.startswith("http://")
      ]
      [required.remove(x) for x in dependency_links]
      [
          required.append(os.path.basename(x).split("-")[0])
          for x in dependency_links
      ]
      return required, dependency_links
  
imports: import os
  import re
  import setuptools
  from typing import List
  from setuptools import find_packages
label_desc: Use image node_id 1 for calling a global function with example usage: parse_requirements(file_name) and returns: required,  dependency_links