def METHOD_NAME():
    class NestedData(BaseModel):
        id: str
    class NestedModel(BaseModel):
        root: Tuple[int, NestedData]
        @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']
    class MyModel(BaseModel):
        nested: List[NestedModel]
    data = [0, {'id': 'foo'}]
    m = MyModel.model_validate({'nested': [data]})
    assert isinstance(m.nested[0], NestedModel)
    assert isinstance(m.nested[0].root[1], NestedData)
    nested = parse_obj_as(NestedModel, data)
    assert isinstance(nested, NestedModel)