code: def test_01_01_dense(self):
      r = numpy.random.RandomState()
      r.seed(101)
      labels = r.randint(0, 10, size=(2, 3, 4, 5, 6, 7))
      s = cellprofiler_core.object.Segmentation(dense=labels)
      assert s.has_dense()
      assert not s.has_sparse()
      numpy.testing.assert_array_equal(s.get_dense()[0], labels)
  
file_path: CellProfiler/tests/core/object/test_segmentation.py
imports: import numpy
  import numpy.testing
  import cellprofiler_core.image
  import cellprofiler_core.object
  import cellprofiler_core.utilities.hdf5_dict
label_desc: Use image node_id 1 for calling the TestSegmentation obj's underlying member method code with example usage: obj.test_01_01_dense() without return types