docstr: Probe the system for information about the current environment.
docstr_tok: ["Probe","the","system","for","information","about","the","current","environment","."]
code: def probe(self) -> Dict[str, Any]:
      """Probe the system for information about the current environment."""
      # todo: refactor this quality code 🤮🤮🤮🤮🤮
      logger.debug("Probing system")
      data: Dict[str, Any] = dict()
  
      data["os"] = self.settings._os
      data["python"] = self.settings._python
      data["heartbeatAt"] = datetime.datetime.utcnow().isoformat()
      data["startedAt"] = datetime.datetime.utcfromtimestamp(
          self.settings._start_time
      ).isoformat()
  
      data["docker"] = self.settings.docker
  
      data["cuda"] = self.settings._cuda
      data["args"] = tuple(self.settings._args or ())
      data["state"] = "running"
  
      if self.settings.program is not None:
          data["program"] = self.settings.program
          # Used during artifact-job creation, always points to the relpath
          # of code execution, even when in a git repo
          data["codePathLocal"] = _get_program_relpath(
              self.settings.program
          )
      if not self.settings.disable_code:
          if self.settings.program_relpath:
              data["codePath"] = self.settings.program_relpath
          elif self.settings._jupyter:
              if self.settings.notebook_name:
                  data["program"] = self.settings.notebook_name
              elif self.settings._jupyter_path:
                  if self.settings._jupyter_path.startswith("fileId="):
                      unescaped = unquote(self.settings._jupyter_path)
                      data["colab"] = (
                          "https://colab.research.google.com/notebook#"
                          + unescaped
                      )
                      data["program"] = self.settings._jupyter_name
                  else:
                      data["program"] = self.settings._jupyter_path
                      data["root"] = self.settings._jupyter_root
          # get the git repo info
          data = self._probe_git(data)
  
      if self.settings.anonymous != "true":
          data["host"] = self.settings.host
          data["username"] = self.settings.username
          data["executable"] = sys.executable
      else:
          data.pop("email", None)
          data.pop("root", None)
  
      logger.debug("Probing system done")
  
      return data
  
imports: import datetime
  import glob
  import json
  import logging
  import os
  import subprocess
  import sys
  from shutil import copyfile
  from typing import Any, Dict, List, Optional
  from urllib.parse import unquote
  from wandb.sdk.internal.settings_static import SettingsStatic
  from wandb.sdk.lib import filesystem
  from wandb.sdk.lib.filenames import CONDA_ENVIRONMENTS_FNAME, DIFF_FNAME, METADATA_FNAME
  from wandb.sdk.lib.gitlib import GitRepo
  from wandb.sdk.wandb_settings import _get_program_relpath
  from .assets.interfaces import Interface
label_desc: Use image node_id 5 for calling the SystemInfo obj's underlying member method code with example usage: obj.probe() and returns: data