import tensorflow as tf

  if FLAGS.input_file is not None:
    for input_pattern in FLAGS.input_file.split(","):
      input_files.extend(tf.gfile.Glob(input_pattern))
  if FLAGS.input_dir is not None:
    for filename in tf.gfile.ListDirectory(FLAGS.input_dir):
      input_files.extend(tf.gfile.Glob(os.path.join(FLAGS.input_dir, filename)))

  tf.logging.info("*** Input Files ***")
