docstr: Relate one parent to one child, but save children as a new set
docstr_tok: ["Relate","one","parent","to","one","child",",","but","save","children","as","a","new","set"]
code: def test_relate_and_make_new_objects(self):
      """Relate one parent to one child, but save children as a new set"""
      parent_labels = numpy.ones((10, 10), int)
      child_labels = numpy.zeros((10, 10), int)
      child_labels[3:5, 4:7] = 1
      workspace, module = self.make_workspace(
          parent_labels, child_labels
      )
      module.wants_child_objects_saved.value = True
      module.output_child_objects_name.value = "outputobjects"
      module.wants_per_parent_means.value = False
      module.run(workspace)
      m = workspace.measurements
      parents_of = m.get_current_measurement(
          CHILD_OBJECTS, "Parent_%s" % PARENT_OBJECTS
      )
      self.assertEqual(numpy.product(parents_of.shape), 1)
      self.assertEqual(parents_of[0], 1)
      child_count = m.get_current_measurement(
          PARENT_OBJECTS, "Children_%s_Count" % CHILD_OBJECTS
      )
      self.assertEqual(numpy.product(child_count.shape), 1)
      self.assertEqual(child_count[0], 1)
      self.features_and_columns_match(workspace)
  
imports: import numpy
  import unittest
  import cellprofiler_core.image
  import cellprofiler_core.measurement
  import cellprofiler_core.module
  from cellprofiler_core.constants.measurement import C_PARENT, GROUP_NUMBER, GROUP_INDEX, COLTYPE_FLOAT, COLTYPE_INTEGER, M_LOCATION_CENTER_X, M_LOCATION_CENTER_Y, FF_PARENT
  import cellprofiler.modules.relateobjects
  import cellprofiler_core.object
  import cellprofiler_core.pipeline
  import cellprofiler_core.preferences
  import cellprofiler_core.workspace
label_desc: Use image node_id 16 for calling the TestRelateObjects obj's underlying member method code with example usage: obj.test_relate_and_make_new_objects() without return types