code: def get_env_info():
      run_lambda = run
      pip_version, pip_list_output = get_pip_packages(run_lambda)
  
      if TORCH_AVAILABLE:
          version_str = torch.__version__
          debug_mode_str = torch.version.debug
          cuda_available_str = torch.cuda.is_available()
          cuda_version_str = torch.version.cuda
      else:
          version_str = (
              debug_mode_str
          ) = cuda_available_str = cuda_version_str = "N/A"
  
      return SystemEnv(
          torch_version=version_str,
          is_debug_build=debug_mode_str,
          python_version="{}.{}".format(
              sys.version_info[0], sys.version_info[1]
          ),
          is_cuda_available=cuda_available_str,
          cuda_compiled_version=cuda_version_str,
          cuda_runtime_version=get_running_cuda_version(run_lambda),
          nvidia_gpu_models=get_gpu_info(run_lambda),
          nvidia_driver_version=get_nvidia_driver_version(run_lambda),
          cudnn_version=get_cudnn_version(run_lambda),
          pip_version=pip_version,
          pip_packages=pip_list_output,
          conda_packages=get_conda_packages(run_lambda),
          os=get_os(run_lambda),
          gcc_version=get_gcc_version(run_lambda),
          cmake_version=get_cmake_version(run_lambda),
      )
  
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import locale
  import re
  import subprocess
  import sys
  import os
  from collections import namedtuple
  import logging
label_desc: Use image node_id 19 for calling a global function with example usage: get_env_info() and returns: SystemEnv