code: def _check_shape(param, param_shape, name):
      """Validate the shape of the input parameter 'param'.
  
      Parameters
      ----------
      param : array
  
      param_shape : tuple
  
      name : string
      """
      param = np.array(param)
      if param.shape != param_shape:
          raise ValueError(
              "The parameter '%s' should have the shape of %s, "
              "but got %s" % (name, param_shape, param.shape)
          )
  
imports: from __future__ import print_function
  import warnings
  from abc import ABCMeta, abstractmethod
  from time import time
  import numpy
  from ..None import cluster
  from ..base import BaseEstimator
  from ..base import DensityMixin
  from ..externals import six
  from ..exceptions import ConvergenceWarning
  from ..utils import check_array, check_random_state
  from ..utils.extmath import logsumexp
label_desc: Use image node_id 1 for calling a global function with example usage: _check_shape(param, param_shape, name) without return types