def METHOD_NAME(all_mors):
    objects = []
    properties_res = MagicMock(objects=objects, token=None)
    mor_properties = ["name", "parent", "customValue", "runtime_powerState", "runtime_host", "guest_hostName"]
    for mor in all_mors:
        prop_set = []
        for prop_name in mor_properties:
            try:
                prop = MagicMock()
                prop.val = getattr(mor, prop_name)
                prop.name = prop_name.replace("_", ".")
                prop_set.append(prop)
            except AttributeError:
                # Only VMs have powerState or host attribute
                continue
        objects.append(MagicMock(obj=mor, propSet=prop_set))
    return properties_res