code: def _load_fashionmnist():
      image_filename = "{}-images-idx3-ubyte"
      label_filename = "{}-labels-idx1-ubyte"
      split_files = [("train", "train"), ("test", "t10k")]
      splits = {}
      for split, split_file in split_files:
          with tempfile.NamedTemporaryFile() as f:
              request.urlretrieve(
                  URLS["fashion_mnist"].format(
                      image_filename.format(split_file)
                  ),
                  f.name,
              )
              with gzip.GzipFile(fileobj=f, mode="r") as data:
                  assert _read32(data) == 2051
                  n_images = _read32(data)
                  row = _read32(data)
                  col = _read32(data)
                  images = np.frombuffer(
                      data.read(n_images * row * col), dtype=np.uint8
                  )
                  images = images.reshape((n_images, row, col, 1))
          with tempfile.NamedTemporaryFile() as f:
              request.urlretrieve(
                  URLS["fashion_mnist"].format(
                      label_filename.format(split_file)
                  ),
                  f.name,
              )
              with gzip.GzipFile(fileobj=f, mode="r") as data:
                  assert _read32(data) == 2049
                  n_labels = _read32(data)
                  labels = np.frombuffer(
                      data.read(n_labels), dtype=np.uint8
                  )
          splits[split] = {
              "images": _encode_png(images),
              "labels": labels,
          }
      return splits
  
imports: import collections
  import gzip
  import os
  import tarfile
  import tempfile
  from urllib import request
  import numpy
  import scipy.io
  import tensorflow
  from absl import app
  from tqdm import trange
  from examples.fixmatch.libml.data import core
  from objax.util import EasyDict
  from objax.util.image import to_png
label_desc: Use image node_id 7 for calling a global function with example usage: _load_fashionmnist() and returns: splits