code: def main(_):
      initialize_globals()
  
      if not FLAGS.test_files:
          log_error(
              "You need to specify what files to use for evaluation via "
              "the --test_files flag."
          )
          sys.exit(1)
  
      from .train import (
          create_model,
      )  # pylint: disable=cyclic-import,import-outside-toplevel
  
      samples = evaluate(FLAGS.test_files.split(","), create_model)
  
      if FLAGS.test_output_file:
          save_samples_json(samples, FLAGS.test_output_file)
  
imports: from __future__ import absolute_import, division, print_function
  import json
  import sys
  from multiprocessing import cpu_count
  import absl.app
  import progressbar
  import tensorflow
  import tensorflow.compat.v1
  from ds_ctcdecoder import ctc_beam_search_decoder_batch, Scorer
  from six.moves import zip
  from .util.config import Config, initialize_globals
  from .util.checkpoints import load_graph_for_evaluation
  from .util.evaluate_tools import calculate_and_print_report, save_samples_json
  from .util.feeding import create_dataset
  from .util.flags import create_flags, FLAGS
  from .util.helpers import check_ctcdecoder_version
  from .util.logging import create_progressbar, log_error, log_progress
label_desc: Use image node_id 4 for calling a global function with example usage: main(_) without return types