code: def _check_cooling_parameters(radiuscooling, scalecooling):
      """Helper function to verify the cooling parameters of the training."""
      if radiuscooling != "linear" and radiuscooling != "exponential":
          raise Exception(
              "Invalid parameter for radiuscooling: " + radiuscooling
          )
      if scalecooling != "linear" and scalecooling != "exponential":
          raise Exception(
              "Invalid parameter for scalecooling: " + scalecooling
          )
  
imports: from __future__ import division, print_function
  import sys
  import matplotlib.cm
  import matplotlib.pyplot
  import matplotlib.collections
  import numpy
  from scipy.spatial.distance import cdist
label_desc: Use image node_id 2 for calling a global function with example usage: _check_cooling_parameters(radiuscooling, scalecooling) without return types