code: def reuse_umap(
      g: Plottable, memoize: bool, metadata: Any
  ):  # noqa: C901
      return check_set_memoize(
          g,
          metadata,
          attribute="_umap_param_to_g",
          name="umap",
          memoize=memoize,
      )
  
imports: import copy
  from time import time
  from typing import TYPE_CHECKING, Any, Dict, Optional, Tuple, Union
  from inspect import getmodule
  import pandas
  from .None import constants
  from .constants import CUML, UMAP_LEARN
  from .feature_utils import FeatureMixin, Literal, XSymbolic, YSymbolic, prune_weighted_edges_df_and_relabel_nodes, resolve_feature_engine
  from .PlotterBase import Plottable, WeakValueDictionary
  from .util import check_set_memoize
  import logging
label_desc: Use image node_id 9 for calling a global function with example usage: reuse_umap(g, memoize, metadata) and returns: check_set_memoize