code: def debug_report():
      max_dots = 33
  
      hip_version = None
      if hasattr(torch.version, "hip"):
          hip_version = torch.version.hip
  
      report = [
          ("torch install path", torch.__path__),
          ("torch version", torch.__version__),
          ("torch cuda version", torch.version.cuda),
          ("torch hip version", hip_version),
          ("nvcc version", (None if hip_version else nvcc_version())),
          ("deepspeed install path", deepspeed.__path__),
          (
              "deepspeed info",
              f"{deepspeed.__version__}, {deepspeed.__git_hash__}, {deepspeed.__git_branch__}",
          ),
          (
              "deepspeed wheel compiled w.",
              f"torch {torch_info['version']}, "
              + (
                  f"hip {torch_info['hip_version']}"
                  if hip_version
                  else f"cuda {torch_info['cuda_version']}"
              ),
          ),
      ]
      print("DeepSpeed general environment info:")
      for name, value in report:
          print(name, "." * (max_dots - len(name)), value)
  
file_path: H2O/h2o_flexgen/benchmark/third_party/DeepSpeed/deepspeed/env_report.py
imports: import torch
  import deepspeed
  import subprocess
  import argparse
  from .ops.op_builder import ALL_OPS
  from .git_version_info import installed_ops, torch_info
label_desc: Use image node_id 4 for calling a global function with example usage: debug_report() without return types