code: def get_dict():
      ram = psutil.virtual_memory()
  
      res = {
          "Platform": platform.platform(),
          "Python": platform.python_version(),
          "Version": launch.git_tag(),
          "Commit": launch.commit_hash(),
          "Script path": paths_internal.script_path,
          "Data path": paths_internal.data_path,
          "Extensions dir": paths_internal.extensions_dir,
          "Checksum": checksum_token,
          "Commandline": get_argv(),
          "Torch env info": get_torch_sysinfo(),
          "Exceptions": errors.get_exceptions(),
          "CPU": {
              "model": platform.processor(),
              "count logical": psutil.cpu_count(logical=True),
              "count physical": psutil.cpu_count(logical=False),
          },
          "RAM": {
              x: pretty_bytes(getattr(ram, x, 0))
              for x in [
                  "total",
                  "used",
                  "free",
                  "active",
                  "inactive",
                  "buffers",
                  "cached",
                  "shared",
              ]
              if getattr(ram, x, 0) != 0
          },
          "Extensions": get_extensions(enabled=True),
          "Inactive extensions": get_extensions(enabled=False),
          "Environment": get_environment(),
          "Config": get_config(),
          "Startup": timer.startup_record,
          "Packages": sorted(
              [
                  f"{pkg.key}=={pkg.version}"
                  for pkg in pkg_resources.working_set
              ]
          ),
      }
  
      return res
  
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 4 for calling a global function with example usage: get_dict() and returns: res