code: def test_init_from_pesudo_indexed_examples(self):
      # This test represents the case where Legacy LIT saved data is loaded via
      # load_lit_format() or some other some external process where the examples
      # are merely cast to IndexedInput. It ensure that all IndexedInput.data and
      # JsonDict example representations are readonly via MappingProxyType.
      indexed_examples = [
          {
              "data": {
                  "parity": "odd",
                  "text": "one",
                  "value": 1,
              },
              "id": "one-1-odd",
              "meta": {},
          },
          {
              "data": {
                  "parity": "even",
                  "text": "two",
                  "value": 2,
              },
              "id": "two-2-even",
              "meta": {},
          },
          {
              "data": {
                  "parity": "odd",
                  "text": "three",
                  "value": 3,
              },
              "id": "three-3-odd",
              "meta": {},
          },
      ]
  
      dataset = lit_dataset.IndexedDataset(
          spec=self._DATASET_SPEC, indexed_examples=indexed_examples
      )
  
      for indexed_example, example, original in zip(
          dataset.indexed_examples, dataset.examples, indexed_examples
      ):
          self.assertEqual(example["_id"], original["id"])
          self.assertEqual(indexed_example["id"], original["id"])
  
          self.assertEqual(indexed_example["meta"], example["_meta"])
  
          indexed_example_data = indexed_example["data"]
          self.assertIsInstance(example, types.MappingProxyType)
          self.assertIsInstance(
              indexed_example_data, types.MappingProxyType
          )
          self.assertEqual(example, indexed_example_data)
          for key in (original_data := original["data"]):
              self.assertEqual(example[key], original_data[key])
              self.assertEqual(
                  indexed_example_data[key], original_data[key]
              )
  
imports: import os
  import types
  from absl.testing import absltest
  from absl.testing import parameterized
  from lit_nlp.api import dataset
  from lit_nlp.api import types
  import numpy
label_desc: Use image node_id 5 for calling the IndexedDatasetTest obj's underlying member method code with example usage: obj.test_init_from_pesudo_indexed_examples() without return types