code: def run_model_test(what, model, expected_train):
      print("--- {} ---".format(what))
      # train
      reader = create_reader(
          data_dir + "/atis.train.ctf", is_training=True
      )
      loss, metric = train(reader, model, max_epochs=1)
      print("-->", metric, loss)
      assert np.allclose(
          [metric, loss], expected_train, atol=TOLERANCE_ABSOLUTE
      )
  
file_path: CNTK/Tests/EndToEndTests/CNTKv2Python/Examples/language_understanding_test.py
imports: from __future__ import print_function
  import os, sys
  import numpy
  import shutil
  from cntk import DeviceDescriptor
  from cntk import placeholder
  from cntk.layers import *
  from cntk.internal.utils import *
  from cntk.logging import *
  from cntk.ops import splice
  from LanguageUnderstanding import data_dir, create_reader, create_model_function, train, evaluate, emb_dim, hidden_dim, num_labels
label_desc: Use image node_id 1 for calling a global function with example usage: run_model_test(what, model, expected_train) without return types