code: def _count_prompt_tokens(client: Client, prompt: str, tokenizer: str):
      request: TokenizationRequest = TokenizationRequest(
          text=prompt, tokenizer=tokenizer
      )
      result: TokenizationRequestResult = client.tokenize(request)
      return len(result.tokens)
  
file_path: H2O/h2o_hf/helm/scripts/efficiency/generate_instances.py
imports: import os
  from typing import Dict, List, Tuple
  from helm.common.general import ensure_directory_exists, ensure_file_downloaded, parse_hocon, write
  from helm.common.tokenization_request import TokenizationRequest, TokenizationRequestResult, DecodeRequest, DecodeRequestResult, TokenizationToken
  from helm.proxy.clients.client import Client
  from helm.proxy.clients.auto_client import AutoClient
  from helm.proxy.services.service import CREDENTIALS_FILE, CACHE_DIR
  from helm.benchmark.scenarios.synthetic_efficiency_scenario import NUM_INPUT_TOKENS
label_desc: Use image node_id 1 for calling a global function with example usage: _count_prompt_tokens(client, prompt, tokenizer) and returns: len