def _check_shape(param, param_shape, name):
 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)))

def _check_shape ( param , param_shape , name ) : 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 ) ) )
validate the shape of the input parameter param .