def METHOD_NAME(query_with_user_result):
    def resolve_result_type(*_):  # pylint: disable=unused-variable
        return "User"
    interface = InterfaceType("SearchResult")
    interface.set_type_resolver(resolve_result_type)
    schema = make_executable_schema(type_defs, [query_with_user_result, interface])
    result = graphql_sync(schema, "{ result { __typename } }")
    assert result.data == {"result": {"__typename": "User"}}