def METHOD_NAME():
    import torch.nn
    def serialize(model):
        return default_serialize_torch_model(model)
    def deserialize(model, state_bytes, device):
        return default_deserialize_torch_model(model, state_bytes, device)
    def get_model():
        return PyTorchWrapper_v3(
            torch.nn.Linear(2, 3),
            serialize_model=serialize,
            deserialize_model=deserialize,
        )
    model = get_model()
    model_bytes = model.to_bytes()
    get_model().from_bytes(model_bytes)
    with make_tempdir() as path:
        model_path = path / "model"
        model.to_disk(model_path)
        new_model = get_model().from_bytes(model_bytes)
        new_model.from_disk(model_path)