token_bucket with keys 'capacity' and 'tokens' set to 10 and 10 respectively.refill_rate and set it to 2 (tokens per second).consume_tokens that takes tokens_needed and reduces tokens if enough are available, returning True if allowed, False otherwise.consume_tokens(5).