code: def _get_gpu_names() -> Sequence[str]:
      """Get a list of GPUs that are available to TensorFlow."""
      result = []
      for device in device_lib.list_local_devices():
          if device.device_type != "GPU":
              continue
          desc = device.physical_device_desc
  
          fields = desc.split(",")
          for field in fields:
              name, value = field.split(":", maxsplit=1)
              name = name.strip()
              value = value.strip()
              if name == "name":
                  result.append(value)
      return result
  
imports: import getpass
  import sys
  from dataclasses import asdict, dataclass, replace
  from datetime import datetime
  from pathlib import Path
  from platform import python_version
  from socket import gethostname
  from typing import Any, Mapping, Sequence, Tuple
  import numpy
  import psutil
  import tensorflow
  from cpuinfo import get_cpu_info
  from git.exc import InvalidGitRepositoryError
  from git.repo import Repo
  from tensorflow.python.client import device_lib
label_desc: Use image node_id 4 for calling a global function with example usage: _get_gpu_names() and returns: result