code: def test_one_object():
      """Test creation of a single tertiary object"""
      primary_labels = numpy.zeros((10, 10), int)
      secondary_labels = numpy.zeros((10, 10), int)
      primary_labels[3:6, 4:7] = 1
      secondary_labels[2:7, 3:8] = 1
      expected_labels = numpy.zeros((10, 10), int)
      expected_labels[2:7, 3:8] = 1
      expected_labels[4, 5] = 0
      workspace = make_workspace(primary_labels, secondary_labels)
      module = workspace.module
      module.run(workspace)
      measurements = workspace.measurements
      assert "Image" in measurements.get_object_names()
      count_feature = "Count_%s" % TERTIARY
      assert count_feature in measurements.get_feature_names("Image")
      value = measurements.get_current_measurement(
          "Image", count_feature
      )
      assert numpy.product(value.shape) == 1
      assert value == 1
  
      assert TERTIARY in measurements.get_object_names()
      child_count_feature = "Children_%s_Count" % TERTIARY
      for parent_name in (PRIMARY, SECONDARY):
          parents_of_feature = "Parent_%s" % parent_name
          assert parents_of_feature in measurements.get_feature_names(
              TERTIARY
          )
          value = measurements.get_current_measurement(
              TERTIARY, parents_of_feature
          )
          assert numpy.product(value.shape), 1
          assert value[0], 1
          assert child_count_feature in measurements.get_feature_names(
              parent_name
          )
          value = measurements.get_current_measurement(
              parent_name, child_count_feature
          )
          assert numpy.product(value.shape), 1
          assert value[0], 1
  
      for axis, expected in (("X", 5), ("Y", 4)):
          feature = "Location_Center_%s" % axis
          assert feature in measurements.get_feature_names(TERTIARY)
          value = measurements.get_current_measurement(
              TERTIARY, feature
          )
          assert numpy.product(value.shape), 1
          assert value[0] == expected
  
      assert TERTIARY in workspace.object_set.get_object_names()
      output_objects = workspace.object_set.get_objects(TERTIARY)
      assert numpy.all(output_objects.segmented == expected_labels)
  
imports: import numpy
  import six.moves
  import cellprofiler_core.image
  import cellprofiler_core.measurement
  import cellprofiler_core.measurement
  import cellprofiler_core.modules
  from cellprofiler_core.constants.measurement import FF_COUNT, COLTYPE_INTEGER, M_LOCATION_CENTER_X, COLTYPE_FLOAT, M_LOCATION_CENTER_Y, M_NUMBER_OBJECT_NUMBER, FF_CHILDREN_COUNT, FF_PARENT, R_FIRST_IMAGE_NUMBER, R_SECOND_IMAGE_NUMBER, R_FIRST_OBJECT_NUMBER, R_SECOND_OBJECT_NUMBER
  import cellprofiler.modules.identifytertiaryobjects
  import cellprofiler_core.object
  import cellprofiler_core.pipeline
  import cellprofiler_core.workspace
  import tests.frontend.modules
label_desc: Use image node_id 4 for calling a global function with example usage: test_one_object() without return types