code: def try_nvidia_smi() -> str | None:
      try:
          return subprocess.check_output(["nvidia-smi"]).decode()
      except Exception:
          return None
  
file_path: jax/jax/_src/environment_info.py
imports: from __future__ import annotations
  import subprocess
  import sys
  import textwrap
  from jax import version
  from jax._src import lib
  from jax._src import xla_bridge
  import numpy
label_desc: Use image node_id 1 for calling a global function with example usage: try_nvidia_smi() and returns: subprocess, None