code: def test_serialization_decode_in_dataset(
      fixture_lookup, serialization_fixture, decode_function
  ):
      """test_serialization_decode_in_dataset"""
      data, value, specs = fixture_lookup(serialization_fixture)
  
      dataset = tf.data.Dataset.from_tensor_slices([data, data])
      dataset = dataset.map(lambda e: decode_function(e, specs))
      entries = list(dataset)
  
      assert len(entries) == 2
      for returned in entries:
          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 6 for calling a global function with example usage: test_serialization_decode_in_dataset(fixture_lookup, serialization_fixture, decode_function) without return types