code: def test_resource_profiler_multiple_gets():
      with ResourceProfiler(dt=0.01) as rprof:
          get(dsk2, "c")
          assert len(rprof.results) == 0
          get(dsk2, "c")
      results = rprof.results
      assert all(isinstance(i, tuple) and len(i) == 3 for i in results)
  
      rprof.clear()
      rprof.register()
      get(dsk2, "c")
      assert len(rprof.results) > 0
      get(dsk2, "c")
      rprof.unregister()
  
      results = rprof.results
      assert all(isinstance(i, tuple) and len(i) == 3 for i in results)
  
      rprof.close()
      assert not rprof._is_running()
  
imports: from __future__ import annotations
  import contextlib
  import os
  import warnings
  from operator import add, mul
  from timeit import default_timer
  import pytest
  from dask.diagnostics import CacheProfiler, Profiler, ResourceProfiler
  from dask.diagnostics.profile_visualize import BOKEH_VERSION
  from dask.threaded import get
  from dask.utils import apply, tmpfile
  from dask.utils_test import slowadd
label_desc: Use image node_id 5 for calling a global function with example usage: test_resource_profiler_multiple_gets() without return types