code: def test_encode_decode_extension_type_tensor(self):
      class MaskedTensor(tf.experimental.ExtensionType):
          __name__ = "MaskedTensor"
          values: tf.Tensor
          mask: tf.Tensor
  
      x = MaskedTensor(
          values=[[1, 2, 3], [4, 5, 6]],
          mask=[[True, True, False], [True, False, True]],
      )
      string = json_utils.Encoder().encode(x)
      loaded = json_utils.decode(string)
      self.assertAllClose(loaded.values, x.values)
      self.assertAllClose(loaded.mask, x.mask)
  
file_path: keras/keras/legacy/saving/json_utils_test.py
imports: import enum
  import pytest
  from keras import backend
  from keras import testing
  from keras.legacy.saving import json_utils
label_desc: Use image node_id 4 for calling the JsonUtilsTestTF obj's underlying member method code with example usage: obj.test_encode_decode_extension_type_tensor() without return types