def METHOD_NAME():
    @dataclass
    class MyDataclass:
        a: str
        b: str
        @field_validator('a', 'b')
        @classmethod
        def check_a_and_b(cls, v, info):
            if len(v) < 4:
                raise TypeError(f'{info.field_name} is too short')
            return v + 'x'
    assert asdict(MyDataclass(a='1234', b='5678')) == {'a': '1234x', 'b': '5678x'}
    with pytest.raises(TypeError, match='a is too short'):
        MyDataclass(a='x', b='x')