code: def get_torch_sysinfo():
      try:
          import torch.utils.collect_env
  
          info = torch.utils.collect_env.get_env_info()._asdict()
  
          return {
              k: re.split(re_newline, str(v)) if "\n" in str(v) else v
              for k, v in info.items()
          }
      except Exception as e:
          return str(e)
  
file_path: stable-diffusion-webui/modules/sysinfo.py
imports: import json
  import os
  import sys
  import platform
  import hashlib
  import pkg_resources
  import psutil
  import re
  import launch
  from modules import paths_internal, timer, shared, extensions, errors
label_desc: Use image node_id 7 for calling a global function with example usage: get_torch_sysinfo() and returns: unknown, str