code: def test_defaults(self):
      pytest.importorskip("scipy")
  
      self.g.append_cp()
      cp = g.v.cp.values
  
      assert np.all(
          np.equal(
              np.unique(cp, return_counts=True),
              (np.array([0, 1, 2]), np.array([3, 1, 1])),
          )
      )
      assert np.all(cp[:3] == cp[0])
  
imports: import pytest
  import numpy
  import pandas
  from pandas.testing import assert_frame_equal
  from numpy.testing import assert_allclose
  from deepgraph import DeepGraph
label_desc: Use image node_id 1 for calling the TestAppendCP obj's underlying member method code with example usage: obj.test_defaults() without return types