code: def test_umap_cluster(self):
      g = graphistry.nodes(ndf).edges(edf, "src", "dst")
      for kind in ["nodes", "edges"]:
          g2 = g.umap(kind=kind, n_topics=2, dbscan=False).dbscan(
              kind=kind, verbose=True
          )
          self._condition(g2, kind)
          g3 = g.umap(kind=kind, n_topics=2, dbscan=True)
          self._condition(g3, kind)
          if kind == "nodes":
              self.assertEqual(
                  g2._nodes[DBSCAN].tolist(), g3._nodes[DBSCAN].tolist()
              )
          else:
              self.assertEqual(
                  g2._edges[DBSCAN].tolist(), g3._edges[DBSCAN].tolist()
              )
  
file_path: pygraphistry/graphistry/tests/test_compute_cluster.py
imports: import pandas
  import unittest
  import pytest
  import graphistry
  from graphistry.constants import DBSCAN
  from graphistry.util import ModelDict
  from graphistry.compute.cluster import lazy_dbscan_import_has_dependency
label_desc: Use image node_id 2 for calling the TestComputeCluster obj's underlying member method code with example usage: obj.test_umap_cluster() without return types