code: def main(argv):
      if len(argv[1:]):
          subset = set(argv[1:])
      else:
          subset = set(CONFIGS.keys())
      tf.io.gfile.makedirs(core.DATA_DIR)
      for name, config in CONFIGS.items():
          if name not in subset:
              continue
          if "is_installed" in config:
              if config["is_installed"]():
                  print("Skipping already installed:", name)
                  continue
          elif _is_installed(name, config["checksums"]):
              print("Skipping already installed:", name)
              continue
          print("Preparing", name)
          datas = config["loader"]()
          saver = config.get("saver", _save_as_tfrecord)
          for sub_name, data in datas.items():
              if sub_name == "readme":
                  filename = os.path.join(
                      core.DATA_DIR, "%s-%s.txt" % (name, sub_name)
                  )
                  with tf.io.gfile.GFile(filename, "w") as f:
                      f.write(data)
              elif sub_name == "files":
                  for file_and_data in data:
                      path = os.path.join(
                          core.DATA_DIR, file_and_data.filename
                      )
                      with tf.io.gfile.GFile(path, "wb") as f:
                          f.write(file_and_data.data)
              else:
                  saver(data, "%s-%s" % (name, sub_name))
  
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 15 for calling a global function with example usage: main(argv) without return types