code: def test_training_loop_compiles() -> None:
      m1 = create_model()
      m2 = create_model()
      training_loop(
          m1.training_loss,
          tf.optimizers.Adam(),
          m1.trainable_variables,
          maxiter=50,
          compile=True,
      )
      training_loop(
          m2.training_loss,
          tf.optimizers.Adam(),
          m2.trainable_variables,
          maxiter=50,
          compile=False,
      )
      assert_models_close(m1, m2)
  
file_path: GPflow/tests/gpflow/utilities/test_training_loop.py
imports: from typing import Any
  import numpy
  import tensorflow
  from check_shapes import ShapeChecker
  import gpflow
  from gpflow.utilities import training_loop
label_desc: Use image node_id 3 for calling a global function with example usage: test_training_loop_compiles() without return types