code: def mock_gpu_apple_stats_sample(self) -> None:
      stats: _Stats = {
          "gpu": 30.0,
          "memoryAllocated": 12.0,
          "temp": 42.5,
          "powerWatts": 7.3,
          "powerPercent": (7.3 / self.MAX_POWER_WATTS) * 100,
      }
      self.samples.append(stats)
  
file_path: wandb/tests/pytest_tests/unit_tests/test_system_metrics/test_gpu_apple.py
imports: import threading
  import time
  from unittest import mock
  import wandb
  from wandb.sdk.internal.settings_static import SettingsStatic
  from wandb.sdk.internal.system.assets import GPUApple
  from wandb.sdk.internal.system.assets.gpu_apple import _Stats
  from wandb.sdk.internal.system.system_monitor import AssetInterface
label_desc: Use image node_id 1 for calling a global function with example usage: mock_gpu_apple_stats_sample() without return types