code: def install_dependencies(cuda_version=None, nightly=False):
      os_map = {"Linux": Linux, "Windows": Windows, "Darwin": Darwin}
      system = os_map[platform.system()]()
  
      if args.environment == "dev":
          system.install_wget()
          system.install_nodejs()
          system.install_node_packages()
          system.install_numactl()
  
      # Sequence of installation to be maintained
      system.install_java()
  
      if args.neuronx:
          system.install_neuronx_driver()
  
      requirements_file = (
          "common.txt"
          if args.environment == "prod"
          else "developer.txt"
      )
      requirements_file_path = os.path.join(
          "requirements", requirements_file
      )
  
      system.install_python_packages(
          cuda_version, requirements_file_path, nightly
      )
  
imports: import argparse
  import os
  import platform
  import sys
  from print_env_info import run_and_parse_first_match
  from ts_scripts.utils import check_python_version
label_desc: Use image node_id 1 for calling a global function with example usage: install_dependencies(cuda_version, nightly) without return types