code: def _build_mnmg_umap(m, data, args, tmpdir):
      client = args["client"]
      del args["client"]
      local_model = UMAP(**args)
  
      if isinstance(data, (tuple, list)):
          local_data = [x.compute() for x in data if x is not None]
      if len(local_data) == 2:
          X, y = local_data
          local_model.fit(X, y)
      else:
          X = local_data
          local_model.fit(X)
  
      return m(client=client, model=local_model, **args)
  
imports: from cuml.manifold import UMAP
  from cuml.benchmark import datagen
  from cuml.common.device_selection import using_device_type
  from cuml.internals.device_type import DeviceType
  from cuml.internals.global_settings import GlobalSettings
  from cuml.internals.safe_imports import cpu_only_import, gpu_only_import, gpu_only_import_from, safe_import
  import sklearn.ensemble
  import pickle
  import os
  import cuml
  from cuml.internals import input_utils
  from time import perf_counter
label_desc: Use image node_id 18 for calling a global function with example usage: _build_mnmg_umap(m, data, args, tmpdir) and returns: m