code: def _get_mscoco(directory):
      """Download and extract MSCOCO datasets to directory unless it is there."""
      for url in _MSCOCO_URLS:
          filename = os.path.basename(url)
          download_url = os.path.join(_MSCOCO_ROOT_URL, url)
          path = generator_utils.maybe_download(
              directory, filename, download_url
          )
          unzip_dir = os.path.join(directory, filename.strip(".zip"))
          if not tf.gfile.Exists(unzip_dir):
              zipfile.ZipFile(path, "r").extractall(directory)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import io
  import json
  import os
  import random
  import zipfile
  from tensor2tensor.data_generators import generator_utils
  from tensor2tensor.data_generators import image_utils
  from tensor2tensor.data_generators import imagenet
  from tensor2tensor.data_generators import problem
  from tensor2tensor.data_generators import text_encoder
  from tensor2tensor.data_generators import translate_ende
  from tensor2tensor.utils import registry
  import tensorflow.compat.v1
label_desc: Use image node_id 1 for calling a global function with example usage: _get_mscoco(directory) without return types