code: def fixture_mnist_gz():
      """fixture_mnist_gz"""
      mnist_filename = os.path.join(
          os.path.dirname(os.path.abspath(__file__)),
          "test_mnist",
          "mnist.npz",
      )
      with np.load(mnist_filename) as f:
          x_test, y_test = f["x_test"], f["y_test"]
  
      image_filename = os.path.join(
          os.path.dirname(os.path.abspath(__file__)),
          "test_mnist",
          "t10k-images-idx3-ubyte.gz",
      )
      label_filename = os.path.join(
          os.path.dirname(os.path.abspath(__file__)),
          "test_mnist",
          "t10k-labels-idx1-ubyte.gz",
      )
  
      # no need to test all, just take first 1000
  
      args = tf.stack([image_filename, label_filename])
  
      def func(e):
          image_filename, label_filename = e[0], e[1]
          return tfio.IODataset.from_mnist(
              images=image_filename, labels=label_filename
          ).take(1000)
  
      expected = [(x_test[i], y_test[i]) for i in range(1000)]
  
      return args, func, expected
  
imports: import os
  import sys
  import time
  import shutil
  import tempfile
  import numpy
  import pytest
  import tensorflow
  import tensorflow_io
label_desc: Use image node_id 5 for calling a global function with example usage: fixture_mnist_gz() and returns: args,  func,  expected, tfio