code: def _merge_object_datas(object_datas, object_type=None):
      data_dict = defaultdict(list)
      if object_type is None and object_datas:
          object_type = object_datas[0].object_type
  
      for obj_data in object_datas:
          obj_data_dict = obj_data.to_dict()[obj_data.object_type]
          data_dict[object_type].append(obj_data_dict)
  
      return OpenLABELObjectData.from_dict(dict(data_dict))
  
imports: from collections import defaultdict
  import os
  import eta.core.serial
  import fiftyone.core.odm.dataset
label_desc: Use image node_id 1 for calling a global function with example usage: _merge_object_datas(object_datas, object_type) and returns: OpenLABELObjectData