def METHOD_NAME() -> None:
    class MyModel(BaseModel):
        number: int
        custom_validator = get_my_custom_validator('number')  # type: ignore[pydantic-field]
        @model_validator(mode='before')
        @classmethod
        def validate_before(cls, values: Any) -> Any:
            return values
        @model_validator(mode='after')
        def validate_after(self) -> Self:
            return self
    MyModel(number=2)