docstr: Make a workspace for testing Relate
docstr_tok: ["Make","a","workspace","for","testing","Relate"]
code: def make_workspace(self, parents, children, fake_measurement=False):
      """Make a workspace for testing Relate"""
      pipeline = cellprofiler_core.pipeline.Pipeline()
      if fake_measurement:
  
          class FakeModule(cellprofiler_core.module.Module):
              def get_measurement_columns(self, pipeline):
                  return [
                      (
                          CHILD_OBJECTS,
                          MEASUREMENT,
                          COLTYPE_FLOAT,
                      ),
                      (
                          CHILD_OBJECTS,
                          IGNORED_MEASUREMENT,
                          COLTYPE_INTEGER,
                      ),
                  ]
  
          module = FakeModule()
          module.set_module_num(1)
          pipeline.add_module(module)
      module = cellprofiler.modules.relateobjects.Relate()
      module.x_name.value = PARENT_OBJECTS
      module.y_name.value = CHILD_OBJECTS
      module.find_parent_child_distances.value = (
          cellprofiler.modules.relateobjects.D_NONE
      )
      module.wants_child_objects_saved.value = False
      new_module_num = 2 if fake_measurement else 1
      module.set_module_num(new_module_num)
      pipeline.add_module(module)
      object_set = cellprofiler_core.object.ObjectSet()
      image_set_list = cellprofiler_core.image.ImageSetList()
      image_set = image_set_list.get_image_set(0)
      m = cellprofiler_core.measurement.Measurements()
      m.add_image_measurement(GROUP_NUMBER, 1)
      m.add_image_measurement(GROUP_INDEX, 1)
      workspace = cellprofiler_core.workspace.Workspace(
          pipeline, module, image_set, object_set, m, image_set_list
      )
      o = cellprofiler_core.object.Objects()
      if parents.shape[1] == 3:
          # IJV format
          o.ijv = parents
      else:
          o.segmented = parents
      object_set.add_objects(o, PARENT_OBJECTS)
      o = cellprofiler_core.object.Objects()
      if children.shape[1] == 3:
          o.ijv = children
      else:
          o.segmented = children
      object_set.add_objects(o, CHILD_OBJECTS)
      return workspace, module
  
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 1 for calling the TestRelateObjects obj's underlying member method code with example usage: obj.make_workspace(parents, children, fake_measurement) and returns: workspace,  module, list