code: def test_version(self):
      v = version.Version("1.3.534")
      self.assertEqual((v.major, v.minor, v.patch), (1, 3, 534))
      self.assertEqual(str(v), "1.3.534")
      self.assertEqual(repr(v), "Version('1.3.534')")
      with self.assertRaisesWithPredicateMatch(
          ValueError, "Format should be "
      ):
          version.Version("1.3.-534")
      with self.assertRaisesWithPredicateMatch(
          ValueError, "Format should be "
      ):
          version.Version("1.3")
      with self.assertRaisesWithPredicateMatch(
          ValueError, "Format should be "
      ):
          version.Version("1.3.")
      with self.assertRaisesWithPredicateMatch(
          ValueError, "Format should be "
      ):
          version.Version("1..5")
      with self.assertRaisesWithPredicateMatch(
          ValueError, "Format should be "
      ):
          version.Version("a.b.c")
  
file_path: datasets/tensorflow_datasets/core/utils/version_test.py
imports: from tensorflow_datasets import testing
  from tensorflow_datasets.core.utils import version
label_desc: Use image node_id 2 for calling the VersionTest obj's underlying member method code with example usage: obj.test_version() without return types