docstr: Get categories related to creating new children
  
  pipeline - the pipeline being run (not used)
  object_name - the base object of the measurement: "Image" or an object
  object_dictionary - a dictionary where each key is the name of
                      an object created by this module and each
                      value is a list of names of parents.
docstr_tok: ["Get","categories","related","to","creating","new","children","pipeline","-","the","pipeline","being","run","(","not","used",")","object_name","-","the","base","object","of","the","measurement",":","``","Image","''","or","an","object","object_dictionary","-","a","dictionary","where","each","key","is","the","name","of","an","object","created","by","this","module","and","each","value","is","a","list","of","names","of","parents","."]
code: def get_object_categories(pipeline, object_name, object_dictionary):
      """Get categories related to creating new children
  
      pipeline - the pipeline being run (not used)
      object_name - the base object of the measurement: "Image" or an object
      object_dictionary - a dictionary where each key is the name of
                          an object created by this module and each
                          value is a list of names of parents.
      """
      if object_name == IMAGE:
          return [C_COUNT]
      result = []
      if object_name in object_dictionary:
          result += [
              C_LOCATION,
              C_NUMBER,
          ]
          if len(object_dictionary[object_name]) > 0:
              result += [C_PARENT]
      if object_name in functools.reduce(
          lambda x, y: x + y, list(object_dictionary.values())
      ):
          result += [C_CHILDREN]
      return result
  
file_path: CellProfiler/src/subpackages/core/cellprofiler_core/module/_identify.py
imports: import functools
  from ._module import Module
  from ..constants.measurement import C_CHILDREN
  from ..constants.measurement import C_COUNT
  from ..constants.measurement import C_LOCATION
  from ..constants.measurement import C_NUMBER
  from ..constants.measurement import C_PARENT
  from ..constants.measurement import FTR_CENTER_X
  from ..constants.measurement import FTR_CENTER_Y
  from ..constants.measurement import FTR_OBJECT_NUMBER
  from ..constants.measurement import IMAGE
label_desc: Use image node_id 1 for calling the Identify obj's underlying member method code with example usage: obj.get_object_categories(pipeline, object_name, object_dictionary) and returns: result, list