code: def test_consolidate_singles(self):
      pytest.importorskip("scipy")
  
      cp_true = np.array([1, 1, 1, 0, 0])
  
      self.g.append_cp(consolidate_singles=True)
      cp_test = g.v.cp.values
  
      assert_allclose(cp_true, cp_test)
  
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 2 for calling the TestAppendCP obj's underlying member method code with example usage: obj.test_consolidate_singles() without return types