code: def test_transform_umap(self):
      np.random.seed(41)
      test = self.test
      assert (
          self.g2._node_embedding.shape[0]
          <= self.g3._node_embedding.shape[0]
      ), "Node Embedding Lengths do not match, found {} and {}".format(
          self.g2._node_embedding.shape[0],
          self.g3._node_embedding.shape[0],
      )
      # now feed it args
      min_dist = ["auto", 10]
      sample = [None, 2]
      return_graph = [True, False]
      fit_umap_embedding = [True, False]
      n_neighbors = [2, None]
      for ep in min_dist:
          g4 = self.g2.transform_umap(test, test, min_dist=ep)
          assert True
      for return_g in return_graph:
          g4 = self.g2.transform_umap(test, test, return_graph=return_g)
          if return_g:
              assert True
          else:
              objs = (pd.DataFrame,)
              if has_cudf:
                  objs = (pd.DataFrame, cudf.DataFrame)
              assert len(g4) == 3
              assert isinstance(g4[0], objs)
              assert isinstance(g4[1], objs)
              assert isinstance(g4[2], objs)
              assert g4[0].shape[1] == 2
              assert g4[1].shape[1] >= 2
              assert g4[2].shape[0] == test.shape[0]
      for n_neigh in n_neighbors:
          g4 = self.g2.transform_umap(test, n_neighbors=n_neigh)
          assert True
      for sample_ in sample:
          print("sample", sample_)
          g4 = self.g2.transform_umap(test, sample=sample_)
          assert True
      for fit_umap_embedding_ in fit_umap_embedding:
          g4 = self.g2.transform_umap(
              test, fit_umap_embedding=fit_umap_embedding_
          )
          assert True
  
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 7 for calling the TestUMAPFitTransform obj's underlying member method code with example usage: obj.test_transform_umap() without return types