code: def skip_if_not_enough_devices(required_devices):
      if required_devices is not None:
          visible_devices = get_visible_devices()
          number_of_visible_devices = len(visible_devices)
          if required_devices > number_of_visible_devices:
              pytest.skip(
                  "Not enough devices available to "
                  "test MG({})".format(required_devices)
              )
  
file_path: cugraph/python/cugraph/cugraph/tests/utils/mg_context.py
imports: import time
  import pytest
  import cugraph.dask.comms
  from dask.distributed import Client
  from dask_cuda import LocalCUDACluster
  from cugraph.dask.common.mg_utils import get_visible_devices
label_desc: Use image node_id 1 for calling a global function with example usage: skip_if_not_enough_devices(required_devices) without return types