code: def test_encode_decode_tuple(self):
      metadata = {"key1": (3, 5), "key2": [(1, (3, 4)), (1,)]}
      string = json_utils.Encoder().encode(metadata)
      loaded = json_utils.decode(string)
  
      self.assertEqual(set(loaded.keys()), {"key1", "key2"})
      self.assertAllEqual(loaded["key1"], (3, 5))
      self.assertAllEqual(loaded["key2"], [(1, (3, 4)), (1,)])
  
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 1 for calling the JsonUtilsTestAllBackends obj's underlying member method code with example usage: obj.test_encode_decode_tuple() without return types