code: def early_training_checks():
      # Check for proper scorer early
      if FLAGS.scorer_path:
          scorer = Scorer(
              FLAGS.lm_alpha,
              FLAGS.lm_beta,
              FLAGS.scorer_path,
              Config.alphabet,
          )
          del scorer
  
      if (
          FLAGS.train_files
          and FLAGS.test_files
          and FLAGS.load_checkpoint_dir != FLAGS.save_checkpoint_dir
      ):
          log_warn(
              "WARNING: You specified different values for --load_checkpoint_dir "
              "and --save_checkpoint_dir, but you are running training and testing "
              "in a single invocation. The testing step will respect --load_checkpoint_dir, "
              "and thus WILL NOT TEST THE CHECKPOINT CREATED BY THE TRAINING STEP. "
              "Train and test in two separate invocations, specifying the correct "
              "--load_checkpoint_dir in both cases, or use the same location "
              "for loading and saving."
          )
  
imports: from __future__ import absolute_import, division, print_function
  import os
  import sys
  import absl.app
  import numpy
  import progressbar
  import shutil
  import tensorflow
  import tensorflow.compat.v1
  import time
  from datetime import datetime
  from ds_ctcdecoder import ctc_beam_search_decoder, Scorer
  from .evaluate import evaluate
  from six.moves import zip, range
  from .util.config import Config, initialize_globals
  from .util.checkpoints import load_or_init_graph_for_training, load_graph_for_evaluation, reload_best_checkpoint
  from .util.evaluate_tools import save_samples_json
  from .util.feeding import create_dataset, audio_to_features, audiofile_to_features
  from .util.flags import create_flags, FLAGS
  from .util.helpers import check_ctcdecoder_version, ExceptionBox
  from .util.logging import create_progressbar, log_debug, log_error, log_info, log_progress, log_warn
  from .util.io import open_remote, remove_remote, listdir_remote, is_remote_path, isdir_remote
label_desc: Use image node_id 21 for calling a global function with example usage: early_training_checks() without return types