code: def get_system_info() -> OrderedDict:
      """
      Get system info as an ordered dictionary.
      """
      output: OrderedDict = OrderedDict()
  
      _dict_append(output, "System", platform.system)
      if output["System"] == "Windows":
          _dict_append(output, "Win32 version", platform.win32_ver)
          if hasattr(platform, "win32_edition"):
              _dict_append(
                  output, "Win32 edition", platform.win32_edition
              )
  
      elif output["System"] == "Darwin":
          _dict_append(
              output, "Mac version", lambda: platform.mac_ver()[0]
          )
      else:
          with open("/etc/os-release") as rel_f:
              linux_ver = re.search(r'PRETTY_NAME="(.*)"', rel_f.read())
          if linux_ver:
              _dict_append(
                  output, "Linux version", lambda: linux_ver.group(1)
              )
  
      _dict_append(output, "Platform", platform.platform)
      _dict_append(output, "Processor", platform.processor)
      _dict_append(output, "Machine", platform.machine)
      _dict_append(output, "Python version", platform.python_version)
  
      if not has_psutil:
          _dict_append(
              output,
              "`psutil` missing",
              lambda: "run `pip install monai[psutil]`",
          )
      else:
          p = psutil.Process()
          with p.oneshot():
              _dict_append(output, "Process name", p.name)
              _dict_append(output, "Command", p.cmdline)
              _dict_append(output, "Open files", p.open_files)
              _dict_append(
                  output,
                  "Num physical CPUs",
                  lambda: psutil.cpu_count(logical=False),
              )
              _dict_append(
                  output,
                  "Num logical CPUs",
                  lambda: psutil.cpu_count(logical=True),
              )
              _dict_append(
                  output,
                  "Num usable CPUs",
                  lambda: len(psutil.Process().cpu_affinity()),
              )
              _dict_append(
                  output,
                  "CPU usage (%)",
                  lambda: psutil.cpu_percent(percpu=True),
              )
              _dict_append(
                  output,
                  "CPU freq. (MHz)",
                  lambda: round(psutil.cpu_freq(percpu=False)[0]),
              )
              _dict_append(
                  output,
                  "Load avg. in last 1, 5, 15 mins (%)",
                  lambda: [
                      round(x / psutil.cpu_count() * 100, 1)
                      for x in psutil.getloadavg()
                  ],
              )
              _dict_append(
                  output,
                  "Disk usage (%)",
                  lambda: psutil.disk_usage(os.getcwd()).percent,
              )
              _dict_append(
                  output,
                  "Avg. sensor temp. (Celsius)",
                  lambda: np.round(
                      np.mean(
                          [
                              item.current
                              for sublist in psutil.sensors_temperatures().values()
                              for item in sublist
                          ],
                          1,
                      )
                  ),
              )
              mem = psutil.virtual_memory()
              _dict_append(
                  output,
                  "Total physical memory (GB)",
                  lambda: round(mem.total / 1024**3, 1),
              )
              _dict_append(
                  output,
                  "Available memory (GB)",
                  lambda: round(mem.available / 1024**3, 1),
              )
              _dict_append(
                  output,
                  "Used memory (GB)",
                  lambda: round(mem.used / 1024**3, 1),
              )
  
      return output
  
imports: from __future__ import annotations
  import getpass
  import os
  import platform
  import re
  import sys
  from collections import OrderedDict
  from typing import TextIO
  import numpy
  import torch
  import monai
  from monai.utils.module import OptionalImportError, get_package_version, optional_import
label_desc: Use image node_id 5 for calling a global function with example usage: get_system_info() and returns: output