code: def test_maybe_add_pretokenized_features_pretokenized_exists(self):
      vocabulary = mock_vocabulary(
          {
              "a": 1,
              "b": 2,
              "c": 3,
              "d": 4,
          },
          vocab_size=1000,
      )
  
      examples = [
          {
              "inputs_pretokenized": "Hello world!",
              "inputs": np.array([1, 2, 3, 4], dtype=np.int32),
          }
      ]
      result = utils._maybe_add_pretokenized_features(
          examples, vocabulary
      )
      self.assertEqual(result[0]["inputs_pretokenized"], "Hello world!")
      self.assertSameElements(
          result[0].keys(), ("inputs", "inputs_pretokenized")
      )
      self.assertLen(result, 1)
  
file_path: mesh/mesh_tensorflow/transformer/utils_test.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from absl.testing import absltest
  from absl.testing import parameterized
  import mesh_tensorflow
  from mesh_tensorflow.transformer import utils
  import numpy
  import tensorflow.compat.v1
label_desc: Use image node_id 6 for calling the UtilsTest obj's underlying member method code with example usage: obj.test_maybe_add_pretokenized_features_pretokenized_exists() without return types