code: def _loop_configs(c: TrainingLoopConfigs):
      return TrainingLoop(
          loop_count=c.loop_count,
          loop_step=c.loop_step,
          is_save_models=c.is_save_models,
          log_new_line_interval=c.log_new_line_interval,
          log_write_interval=c.log_write_interval,
          save_models_interval=c.save_models_interval,
          is_loop_on_interrupt=c.is_loop_on_interrupt,
      )
  
imports: import signal
  import typing
  from typing import Optional, Tuple, Any, Collection
  from labml import tracker, logger, experiment, monit
  from labml.configs import BaseConfigs, meta_config, option
  from labml.internal.monitor import Loop
  from labml.logger import Text
label_desc: Use image node_id 1 for calling a global function with example usage: _loop_configs(c) and returns: TrainingLoop