def METHOD_NAME():
    @strawberry.federation.type(keys=["upc"])
    class ProductFed:
        upc: str
        name: Optional[str]
        price: Optional[int]
        weight: Optional[int]
    with pytest.warns(UserWarning) as record:
        strawberry.Schema(
            query=ProductFed,
        )
    assert (
        "Federation directive found in schema. "
        "Use `strawberry.federation.Schema` instead of `strawberry.Schema`."
        in [str(r.message) for r in record]
    )