code: def get_package_names() -> List[str]:
      freeze_output = subprocess.check_output(
          [sys.executable, "-m", "pip", "freeze", "--local"]
      ).decode("utf-8")
      result = []
      for line in freeze_output.split():
          line = line.lstrip()
          if not line or line[0] == "#" or "==" not in line:
              continue
          result.append(line.split("==")[0])
      return result
  
imports: import subprocess
  import sys
  from typing import List
label_desc: Use image node_id 1 for calling a global function with example usage: get_package_names() and returns: result