code: def test_serialization_encode(
      fixture_lookup,
      serialization_fixture,
      encode_function,
      decode_function,
  ):
      """test_serialization_encode"""
      _, value, specs = fixture_lookup(serialization_fixture)
  
      returned = encode_function(value, specs)
      returned = decode_function(returned, specs)
      tf.nest.assert_same_structure(value, returned)
      assert all(
          [
              np.array_equal(v, r)
              for v, r in zip(
                  tf.nest.flatten(value), tf.nest.flatten(returned)
              )
          ]
      )
  
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 5 for calling a global function with example usage: test_serialization_encode(fixture_lookup, serialization_fixture, encode_function, decode_function) without return types