class_docstr: The tokenizer for YaLM, which was trained on Russian and English text.
  Source: https://github.com/yandex/YaLM-100B
class_docstr_tok: ["The","tokenizer","for","YaLM",",","which","was","trained","on","Russian","and","English","text",".","Source",":","https",":","\/\/github.com\/yandex\/YaLM-100B"]
code: def decode(self, request: DecodeRequest) -> DecodeRequestResult:
      cache_key = asdict(request)
  
      try:
  
          def do_it():
              return {"text": self.tokenizer.decode(request.tokens)}
  
          result, cached = self.cache.get(
              cache_key, wrap_request_time(do_it)
          )
      except Exception as e:
          error: str = f"YaLM Tokenizer error: {e}"
          return DecodeRequestResult(
              success=False, cached=False, error=error, text=""
          )
  
      return DecodeRequestResult(
          success=True,
          cached=cached,
          text=result["text"],
          request_time=result["request_time"],
      )
  
file_path: H2O/h2o_hf/helm/src/helm/proxy/clients/yalm_tokenizer_client.py
imports: from dataclasses import asdict
  from helm.common.cache import Cache, CacheConfig
  from helm.common.request import Request, RequestResult
  from helm.common.tokenization_request import TokenizationRequest, TokenizationRequestResult, DecodeRequest, DecodeRequestResult, TokenizationToken
  from .client import Client, wrap_request_time
  from .yalm_tokenizer.yalm_tokenizer import YaLMTokenizer
label_desc: Use image node_id 4 for calling the YaLMTokenizerClient obj's underlying member method code with example usage: obj.decode(request) and returns: DecodeRequestResult, dict, DecodeRequestResult