code: def test_encode_with_truncation(self):
      max_length: int = 6
      request = TokenizationRequest(
          text=self.test_prompt,
          encode=True,
          truncation=True,
          max_length=max_length,
      )
      result: TokenizationRequestResult = self.client.tokenize(request)
      assert result.raw_tokens == self.encoded_test_prompt[:max_length]
  
file_path: H2O/h2o_hf/helm/src/helm/proxy/clients/test_yalm_tokenizer_client.py
imports: import os
  import tempfile
  from typing import List
  from helm.common.cache import SqliteCacheConfig
  from helm.common.tokenization_request import DecodeRequest, DecodeRequestResult, TokenizationRequest, TokenizationRequestResult
  from .yalm_tokenizer_client import YaLMTokenizerClient
label_desc: Use image node_id 5 for calling the TestYaLMTokenizerClient obj's underlying member method code with example usage: obj.test_encode_with_truncation() without return types