code: def _condition(self, g, kind):
      if kind == "nodes":
          self.assertTrue(
              g._node_dbscan is not None,
              "instance has no `_node_dbscan` method",
          )
          self.assertTrue(
              DBSCAN in g._nodes, "node df has no `_dbscan` attribute"
          )
          # self.assertTrue(g._point_color is not None, 'instance has no `_point_color` method')
      else:
          self.assertTrue(
              g._edge_dbscan is not None,
              "instance has no `_edge_dbscan` method",
          )
          self.assertTrue(
              DBSCAN in g._edges, "edge df has no `_dbscan` attribute"
          )
  
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 1 for calling the TestComputeCluster obj's underlying member method code with example usage: obj._condition(g, kind) without return types