code: def get_num_tokens(self, text: str, encode_special_characters=False):
      return self.cached_tokenize(
          text, encode_special_characters=encode_special_characters
      ).shape[-1]
  
file_path: exllama/alt_generator.py
imports: import cuda_ext
  from model import ExLlama, ExLlamaCache
  from tokenizer import ExLlamaTokenizer
  from lora import ExLlamaLora
  import torch
  import torch.nn.functional
label_desc: Use image node_id 3 for calling the ExLlamaAltGenerator obj's underlying member method code with example usage: obj.get_num_tokens(text, encode_special_characters) and returns: self