code: def check_training_model(model):
      """Check that model is a training model and exit otherwise."""
      try:
          assert_training_model(model)
      except AssertionError as e:
          print(e, file=sys.stderr)
          sys.exit(1)
  
file_path: ImageAI/imageai_tf_deprecated/Detection/keras_retinanet/models/__init__.py
imports: from __future__ import print_function
  import sys
label_desc: Use image node_id 5 for calling a global function with example usage: check_training_model(model) without return types