code: def float_or_default(fields: dict, key: str, default: float) -> float:
      try:
          return float(fields[key])
      except ValueError:
          if key not in warned_fields:
              warned_fields.add(key)
              logger.warning(f"Unable to get {key} from nvidia-smi")
          return default
  
file_path: determined/harness/determined/gpu.py
imports: import csv
  import json
  import logging
  import subprocess
  from typing import List, NamedTuple, Tuple
label_desc: Use image node_id 1 for calling a global function with example usage: float_or_default(fields, key, default) and returns: float, default