def METHOD_NAME(objects):
    for k, v in objects.items():
        if k == "type":
            yield v
        elif isinstance(v, dict):
            for id_val in TestTransformQuery.METHOD_NAME(v):
                yield id_val