code: def test_reading_different_version(self):
      info = dataset_info.DatasetInfo(builder=self._builder)
      info._identity.version = utils.Version("2.0.0")
      with pytest.raises(
          AssertionError,
          match=(
              "The constructed DatasetInfo instance and the restored proto"
              " version do not match"
          ),
      ):
          # The dataset in _INFO_DIR has version 3.0.1 whereas the builder is 2.0.0
          info.read_from_directory(_INFO_DIR)
  
imports: import json
  import os
  import pathlib
  import tempfile
  import time
  from typing import Union
  import numpy
  import pytest
  import tensorflow
  from tensorflow_datasets import testing
  from tensorflow_datasets.core import dataset_builder
  from tensorflow_datasets.core import dataset_info
  from tensorflow_datasets.core import features
  from tensorflow_datasets.core import file_adapters
  from tensorflow_datasets.core import naming
  from tensorflow_datasets.core import read_only_builder
  from tensorflow_datasets.core import splits
  from tensorflow_datasets.core import utils
  from tensorflow_datasets.core.proto import dataset_info_pb2
  from tensorflow_datasets.core.proto import feature_pb2
  from tensorflow_datasets.image_classification import mnist
  from tensorflow_datasets.testing.dummy_config_based_datasets.dummy_ds_1 import dummy_ds_1_dataset_builder
  from google.protobuf import text_format
label_desc: Use image node_id 4 for calling the DatasetInfoTest obj's underlying member method code with example usage: obj.test_reading_different_version() without return types