code: def _write_zipped(output_dir, data, tmp_name, zip_name):
      train_path = os.path.join(output_dir, tmp_name)
      with open(train_path, "w") as f:
          np.savez(f, **data)
  
      zip_path = os.path.join(output_dir, zip_name)
      with zipfile.ZipFile(zip_path, "w") as f:
          f.write(train_path)
      os.remove(train_path)
  
file_path: datasets/tensorflow_datasets/testing/fake_data_generation/imagenet_resized.py
imports: import os
  import zipfile
  from absl import app
  from absl import flags
  import numpy
  from tensorflow_datasets.core import utils
label_desc: Use image node_id 1 for calling a global function with example usage: _write_zipped(output_dir, data, tmp_name, zip_name) without return types