code: def verify_model(
      cntk_model,
      node_name,
      tmpdir,
      model_name,
      image=None,
      skip_round_trip_test=True,
      use_external_files_to_store_parameters=False,
  ):
      if node_name is not None:
          cntk_node = cntk_model.find_by_name(node_name)
          if not cntk_node:
              cntk_node = C.logging.depth_first_search(
                  cntk_model, lambda x: x.uid == node_name, depth=10
              )[0]
          cntk_node_model = C.as_composite(cntk_node)
      else:
          node_name = "full"
          cntk_node_model = cntk_model
      sanitized_node_name = model_name + node_name.replace("/", ".")
      if image is None:
          image = np.random.rand(
              *np.shape(cntk_model.arguments[0])
          ).astype(np.float32)
  
      test_model_path = os.path.join(
          str(tmpdir), R"test_" + sanitized_node_name
      )
      print(test_model_path)
  
      if os.path.exists(test_model_path):
          shutil.rmtree(test_model_path, ignore_errors=True)
  
      verify_sequence_model(
          cntk_node_model,
          image,
          tmpdir,
          sanitized_node_name,
          resave=not skip_round_trip_test,
          use_external_files_to_store_parameters=use_external_files_to_store_parameters,
      )
  
file_path: CNTK/bindings/python/cntk/tests/onnx_model_test.py
imports: import cntk
  import numpy
  import pytest
  import os
  import re
  import shutil
  import time
  import tempfile
  from onnx import numpy_helper
  from .onnx_verify_helper import generate_sequence_data, generate_sequential_data, generate_sparse_data, verify_results_with_onnxruntime, generate_sparse_data_non_seq
  from .onnx_test_helper import find_onnx_value_info_proto_with_matching_name, save_cntk_data_as_onnx_tensor, save_test_data, save_onnx_model_with_validation_data
  from .onnx_op_test import verify_sequence_model
label_desc: Use image node_id 6 for calling a global function with example usage: verify_model(cntk_model, node_name, tmpdir, model_name, image, skip_round_trip_test, use_external_files_to_store_parameters) without return types