code: def test_one_time():
      if nvml.device_get_count() < 1:
          pytest.skip("No GPUs available")
  
      output = nvml.one_time()
      assert "memory-total" in output
      assert "name" in output
  
      assert len(output["name"]) > 0
  
file_path: distributed/distributed/diagnostics/tests/test_nvml.py
imports: from __future__ import annotations
  import multiprocessing
  import os
  import pytest
  import dask
  from distributed.diagnostics import nvml
  from distributed.utils_test import gen_cluster
label_desc: Use image node_id 2 for calling a global function with example usage: test_one_time() without return types