code: def is_legacy_cuml():
      try:
          import cuml
  
          vs = cuml.__version__.split(".")
          if (vs[0] in ["0", "21"]) or (
              vs[0] == "22" and float(vs[1]) < 6
          ):
              return True
          else:
              return False
      except ModuleNotFoundError:
          return False
  
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 6 for calling a global function with example usage: is_legacy_cuml() and returns: True, False, False