code: def get_config(ds_train, ds_test):
      return TrainConfig(
          data=QueueInput(ds_train),
          callbacks=[
              ModelSaver(),
              StatMonitorParamSetter(
                  "learning_rate", "error", lambda x: x * 0.2, 0, 5
              ),
              HumanHyperParamSetter("learning_rate"),
              PeriodicTrigger(
                  InferenceRunner(ds_test, [ScalarStats("error")]),
                  every_k_epochs=2,
              ),
          ],
          model=Model(),
          max_epoch=70,
      )
  
file_path: tensorpack/examples/CTC-TIMIT/train-timit.py
imports: import argparse
  import os
  import tensorflow
  from tensorpack import *
  from tensorpack.tfutils.gradproc import GlobalNormClip, SummaryGradient
  from timitdata import TIMITBatch
label_desc: Use image node_id 2 for calling a global function with example usage: get_config(ds_train, ds_test) and returns: TrainConfig