def METHOD_NAME():
    class MyModel(BaseModel):
        root: List[str]
        @model_validator(mode='before')
        @classmethod
        def populate_root(cls, values):
            return {'root': values}
        @model_serializer(mode='wrap')
        def _serialize(self, handler, info):
            data = handler(self)
            if info.mode == 'json':
                return data['root']
            else:
                return data
        @classmethod
        def model_modify_json_schema(cls, json_schema):
            return json_schema['properties']['root']
    m = MyModel.model_validate(['a'])
    assert m.model_dump() == {'root': ['a']}
    assert m.model_dump_json() == '["a"]'
    assert m.root == ['a']