code: def _test_umap(self, g, use_cols, targets, name, kind, df):
      with warnings.catch_warnings():
          warnings.filterwarnings("ignore", category=UserWarning)
          for scaler in ["kbins", "robust"]:
              for cardinality in [2, 200]:
                  for use_ngram in [True, False]:
                      for use_col in use_cols:
                          for target in targets:
                              logger.debug("*" * 90)
                              value = [
                                  scaler,
                                  cardinality,
                                  use_ngram,
                                  target,
                                  use_col,
                              ]
                              logger.debug(f"{value}")
                              logger.debug("-" * 80)
  
                              g2 = g.umap(
                                  kind=kind,
                                  X=use_col,
                                  y=target,
                                  model_name=model_avg_name,
                                  use_scaler=scaler,
                                  use_scaler_target=scaler,
                                  use_ngrams=use_ngram,
                                  engine="umap_learn",
                                  cardinality_threshold=cardinality,
                                  cardinality_threshold_target=cardinality,
                                  n_neighbors=3,
                                  dbscan=False,
                              )
  
                              self.cases_test_graph(
                                  g2, kind=kind, df=df
                              )
  
imports: from xml.sax.handler import feature_external_ges
  import pytest
  import unittest
  import warnings
  import graphistry
  import os
  import logging
  import numpy
  import pandas
  from graphistry import Plottable
  from graphistry.feature_utils import remove_internal_namespace_if_present
  from graphistry.tests.test_feature_utils import ndf_reddit, text_cols_reddit, meta_cols_reddit, good_cols_reddit, single_target_reddit, double_target_reddit, edge_df, edge_df2, edge2_target_df, model_avg_name, lazy_import_has_min_dependancy, check_allclose_fit_transform_on_same_data
  from graphistry.umap_utils import lazy_umap_import_has_dependancy, lazy_cuml_import_has_dependancy, lazy_cudf_import_has_dependancy
label_desc: Use image node_id 1 for calling the TestUMAPAIMethods obj's underlying member method code with example usage: obj._test_umap(g, use_cols, targets, name, kind, df) without return types