code: def reinitRMM(managed_mem, pool_alloc):
      """
      Reinitializes RMM to the value of managed_mem and pool_alloc, but only if
      those values are different that the current configuration.
      """
      if (managed_mem != RMM_SETTINGS["managed_mem"]) or (
          pool_alloc != RMM_SETTINGS["pool_alloc"]
      ):
          rmm.reinitialize(
              managed_memory=managed_mem,
              pool_allocator=pool_alloc,
              initial_pool_size=2 << 27,
          )
          RMM_SETTINGS.update(
              managed_mem=managed_mem, pool_alloc=pool_alloc
          )
  
imports: import pytest
  import numpy
  import pytest_benchmark
  import rmm
  import dask_cudf
  from pylibcugraph.testing import gen_fixture_params_product
  import cugraph
  import cugraph.dask
  from cugraph.structure.number_map import NumberMap
  from cugraph.generators import rmat
  from cugraph.testing import utils, mg_utils
  from cugraph.utilities.utils import is_device_version_less_than
  from cugraph_benchmarking.params import directed_datasets, undirected_datasets, managed_memory, pool_allocator
label_desc: Use image node_id 1 for calling a global function with example usage: reinitRMM(managed_mem, pool_alloc) without return types