code: def test_error(self):
      def f(x):
          return x + x
  
      ep = export(f, (torch.randn(1, 3),))
  
      serialized_artifact = ExportedProgramSerializer().serialize(ep)
      serialized_artifact.exported_program.schema_version.major = -1
      with self.assertRaisesRegex(
          SerializeError,
          r"Serialized schema version .* does not match our current",
      ):
          ExportedProgramDeserializer().deserialize(serialized_artifact)
  
imports: import io
  import pathlib
  import tempfile
  import unittest
  import zipfile
  import torch
  import torch._dynamo
  from torch.export import export, save, load, Dim
  from torch._export.db.case import ExportCase, normalize_inputs, SupportLevel
  from torch._export.db.examples import all_examples
  from torch._export.serde.serialize import ExportedProgramDeserializer, ExportedProgramSerializer, canonicalize, deserialize, serialize, SerializeError
  from torch._subclasses.fake_tensor import FakeTensor
  from torch.fx.experimental.symbolic_shapes import is_concrete_int
  import torch.utils._pytree
  from torch.testing._internal.common_utils import instantiate_parametrized_tests, parametrize, run_tests, TestCase, TemporaryFileName, IS_FBCODE, IS_MACOS, IS_SANDCASTLE, IS_WINDOWS, find_library_location
label_desc: Use image node_id 1 for calling the TestSchemaVersioning obj's underlying member method code with example usage: obj.test_error() and returns: unknown