class_docstr: Dynamic token bucket
class_docstr_tok: ["Dynamic","token","bucket"]
code: def __init__(self, init_amount: int = 0):
      self._amount = init_amount
      self._last_consume_time = time.time()
  
file_path: BentoML/grpc-client/bentoml/_internal/utils/alg.py
imports: from __future__ import annotations
  import time
  import typing
label_desc: Use image node_id 1 to create a new TokenBucket object  with example: obj = TokenBucket(init_amount)