class_docstr: Estimates token cost given a `Request`.
class_docstr_tok: ["Estimates","token","cost","given","a","`","Request","`","."]
docstr: Given a request, estimate the number of tokens.
docstr_tok: ["Given","a","request",",","estimate","the","number","of","tokens","."]
code: def estimate_tokens(
      self, request: Request, metric_service: MetricService
  ) -> int:
      """
      Given a request, estimate the number of tokens.
      """
      pass
  
imports: from abc import ABC, abstractmethod
  from helm.benchmark.metrics.metric_service import MetricService
  from helm.common.request import Request
label_desc: Use image node_id 1 for calling the TokenCostEstimator obj's underlying member method code with example usage: obj.estimate_tokens(request, metric_service) without return types