code: def _get_sys_info() -> dict[str, JSONSerializable]:
      """
      Returns system information as a JSON serializable dictionary.
      """
      uname_result = platform.uname()
      language_code, encoding = locale.getlocale()
      return {
          "commit": _get_commit_hash(),
          "python": ".".join([str(i) for i in sys.version_info]),
          "python-bits": struct.calcsize("P") * 8,
          "OS": uname_result.system,
          "OS-release": uname_result.release,
          "Version": uname_result.version,
          "machine": uname_result.machine,
          "processor": uname_result.processor,
          "byteorder": sys.byteorder,
          "LC_ALL": os.environ.get("LC_ALL"),
          "LANG": os.environ.get("LANG"),
          "LOCALE": {
              "language-code": language_code,
              "encoding": encoding,
          },
      }
  
file_path: pandas/pandas/util/_print_versions.py
imports: from __future__ import annotations
  import codecs
  import json
  import locale
  import os
  import platform
  import struct
  import sys
  from typing import TYPE_CHECKING
  from pandas.compat._optional import VERSIONS, get_version, import_optional_dependency
label_desc: Use image node_id 2 for calling a global function with example usage: _get_sys_info() and returns: dict