code: def test_decode_json_partial_shape():
      """Test case for partial shape GitHub 918."""
      r = json.dumps({"foo": [1, 2, 3, 4, 5]})
  
      @tf.function(autograph=False)
      def parse_json(json_text):
          specs = {
              "foo": tf.TensorSpec(tf.TensorShape([None]), tf.int32)
          }
          parsed = tfio.experimental.serialization.decode_json(
              json_text, specs
          )
          return parsed["foo"]
  
      v = parse_json(r)
      assert np.array_equal(v, [1, 2, 3, 4, 5])
  
file_path: io/tests/test_serialization.py
imports: import os
  import json
  import numpy
  import pytest
  import tensorflow
  import tensorflow_io
label_desc: Use image node_id 7 for calling a global function with example usage: test_decode_json_partial_shape() and returns: parsed