code: def create_or_purge_folder(test_onnx_path, create=True):
      if "test_" not in test_onnx_path:
          return
      if os.path.exists(test_onnx_path):
          shutil.rmtree(test_onnx_path, ignore_errors=True)
      if create:
          os.mkdir(test_onnx_path)
  
imports: import os
  import re
  import shutil
  import numpy
  import scipy
  import cntk
  import pytest
  from .onnx_verify_helper import verify_results_with_onnxruntime, get_onnx_test_runner_callscript
label_desc: Use image node_id 12 for calling a global function with example usage: create_or_purge_folder(test_onnx_path, create) without return types