code: def test_sniff_and_guessed_image_type_randomized():
      """Re-test image classes, but in a randomized order."""
      img_klasses = copy.copy(all_image_classes)
      np.random.shuffle(img_klasses)
      test_sniff_and_guessed_image_type(img_klasses=img_klasses)
  
imports: import copy
  from os.path import basename, dirname
  from os.path import join
  import numpy
  from ..None import MGHImage, Minc1Image, Minc2Image, Nifti1Image, Nifti1Pair, Nifti2Image, Nifti2Pair, Spm2AnalyzeImage, all_image_classes
label_desc: Use image node_id 2 for calling a global function with example usage: test_sniff_and_guessed_image_type_randomized() without return types