code: def test_02_01_shape_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_shape()
      assert tuple(s.shape) == tuple(labels.shape[1:])
  
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 3 for calling the TestSegmentation obj's underlying member method code with example usage: obj.test_02_01_shape_dense() without return types