code: def main(_):
      urls = get_urls_for_shard_group(
          FLAGS.urls_dir, FLAGS.shard_id, FLAGS.group_id
      )
      tf.logging.info(
          "Fetching %d URLs for shard %d, group %d",
          len(urls),
          FLAGS.shard_id,
          FLAGS.group_id,
      )
  
      tf.gfile.MakeDirs(FLAGS.out_dir)
      out_fname = tfrecord_fname(FLAGS.out_dir, FLAGS.shard_id)
  
      with utils.timing("group_fetch"):
          logging_fnames = {}
          if FLAGS.log_samples:
              logging_fnames["samples"] = os.path.join(
                  FLAGS.out_dir, "samples.%d.txt" % FLAGS.shard_id
              )
          loop = asyncio.get_event_loop()
          num_written = loop.run_until_complete(
              asyncio.ensure_future(
                  fetch_urls(urls, out_fname, logging_fnames)
              )
          )
  
      tf.logging.info("Total URLs: %d", len(urls))
      tf.logging.info("Num written: %d", num_written)
      tf.logging.info("Coverage: %.1f", (num_written / len(urls)) * 100)
  
imports: import datetime
  import json
  import math
  import multiprocessing
  import os
  import random
  import asyncio
  import aiohttp
  import tensorflow
  from tensor2tensor.data_generators.wikisum import html
  from tensor2tensor.data_generators.wikisum import utils
label_desc: Use image node_id 12 for calling a global function with example usage: main(_) without return types