code: def test_gpu_usage_gauge(self, nvmlDeviceGetMemoryInfo):
      # given
      gauge = GpuUsageGauge(card_index=self.card_index)
      # and
      util_info = MagicMock()
      util_info.gpu = 40
      nvmlDeviceGetMemoryInfo.side_effect = (
          lambda handle: util_info
          if handle == self.gpu_card_handle
          else None
      )
  
      # when
      usage_percent = gauge.value()
  
      # then
      self.assertEqual(40.0, usage_percent)
      self.assertEqual(float, type(usage_percent))
  
file_path: neptune-client/tests/unit/neptune/legacy/internal/hardware/gauges/test_gpu_gauges.py
imports: import unittest
  from mock import MagicMock, patch
  from neptune.common.hardware.constants import BYTES_IN_ONE_GB
  from neptune.common.hardware.gauges.gpu import GpuMemoryGauge, GpuUsageGauge
label_desc: Use image node_id 2 for calling the TestGPUGauges obj's underlying member method code with example usage: obj.test_gpu_usage_gauge(nvmlDeviceGetMemoryInfo) without return types