def METHOD_NAME(field: Callable):
    """Check that models using `field` to replace `Field` provide
    appropriate warnings and errors.
    """
    with pytest.raises(RuntimeError, match="with forbidden keywords"):
        class BadModel(BaseModel):
            bad_field: int = field(..., random_key="disallowed")
    with pytest.warns(UserWarning, match="No description"):
        class AnotherBadModel(BaseModel):
            bad_field: int = field(...)