

def resolve_pet_type(value, info):
    if isinstance(value, Dog):
        return DogType
    if isinstance(value, Cat):
        return CatType

dataset/ETHPy150Open graphql-python/graphql-core/tests/core_execution/test_union_interface.py resolve_pet_type/original