def _validate_throttle(throttle):
 if (throttle is not None):
  if (not isinstance(throttle, dict)):
   raise TypeError('throttle must be a dictionary, provided value: {0}'.format(throttle))

def _validate_throttle ( throttle ) : if ( throttle is not None ) : if ( not isinstance ( throttle , dict ) ) : raise TypeError ( 'throttle must be a dictionary, provided value: {0}' . format ( throttle ) )
helper to verify that throttling parameters are valid .