code: def _generate_mat(data, train_fname, test_fname):
      """Generate MAT file for given data type (small or full)."""
      dirname = os.path.join(_output_dir(data), "examples.mat")
      data = {
          "examples": np.array(
              [
                  np.array(
                      [
                          np.array([1, 2, 3], dtype=np.uint16),
                          "example_movie",
                          np.array(
                              [
                                  np.array([1.0, 2.0, 3.0]),
                                  np.array([1.0, 2.0, 3.0]),
                              ]
                          ),
                          train_fname,
                          np.array([1.0, 2.0, 3.0]),
                          1.0,
                          np.array(
                              [1.0, 2.0, 3.0, 4.0], dtype=np.float32
                          ),
                          True,
                          False,
                      ]
                  ),
                  np.array(
                      [
                          np.array([1, 2, 3], dtype=np.uint16),
                          "example_movie",
                          np.array(
                              [
                                  np.array([1.0, 2.0, 3.0]),
                                  np.array([1.0, 2.0, 3.0]),
                              ]
                          ),
                          test_fname,
                          np.array([1.0, 2.0, 3.0]),
                          1.0,
                          np.array(
                              [1.0, 2.0, 3.0, 4.0], dtype=np.float32
                          ),
                          False,
                          True,
                      ]
                  ),
              ]
          ),
      }
  
      scipy.io.savemat(dirname, data)
  
file_path: datasets/tensorflow_datasets/testing/fake_data_generation/flic.py
imports: import os
  from absl import app
  from absl import flags
  import numpy
  import scipy.io
  from tensorflow_datasets.core import utils
  from tensorflow_datasets.core.utils.lazy_imports_utils import tensorflow
  from tensorflow_datasets.testing import fake_data_utils
label_desc: Use image node_id 3 for calling a global function with example usage: _generate_mat(data, train_fname, test_fname) without return types