class_docstr: Google Cloud TPU utilization in percent.
class_docstr_tok: ["Google","Cloud","TPU","utilization","in","percent","."]
code: def sample(self) -> None:
      result = self._profiler_client.monitor(
          self.service_addr, duration_ms=self.duration_ms, level=2
      )
  
      self.samples.append(
          float(
              result.split("Utilization ")[1]
              .split(": ")[1]
              .split("%")[0]
          )
      )
  
file_path: wandb/wandb/sdk/internal/system/assets/tpu.py
imports: import logging
  import os
  import threading
  from collections import deque
  from typing import TYPE_CHECKING, List, Optional
  from .aggregators import aggregate_mean
  from .asset_registry import asset_registry
  from .interfaces import Interface, Metric, MetricsMonitor
label_desc: Use image node_id 2 for calling the TPUUtilization obj's underlying member method code with example usage: obj.sample() without return types