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