def rate_limit_argument_spec(spec=None):
 arg_spec = dict(rate=dict(type='int'), rate_limit=dict(type='int'))
 if spec:
  arg_spec.update(spec)
 return arg_spec

def rate_limit_argument_spec ( spec = None ) : arg_spec = dict ( rate = dict ( type = 'int' ) , rate_limit = dict ( type = 'int' ) ) if spec : arg_spec . update ( spec ) return arg_spec
creates an argument spec for working with rate limiting .