class_docstr: Wrapper around the BigDL-LLM
  
  Example:
      .. code-block:: python
  
          from langchain.llms import BigdlNativeLLM
          llm = BigdlNativeLLM(model_path="/path/to/llama/model")
code: def get_num_tokens(self, text: str) -> int:
      tokenized_text = self.client.tokenize(text.encode("utf-8"))
      return len(tokenized_text)
  
imports: import logging
  import importlib
  from typing import Any, Dict, Generator, List, Optional
  from pydantic import Field, root_validator
  from langchain.callbacks.manager import CallbackManagerForLLMRun
  from langchain.llms.base import LLM
  from .transformersllm import TransformersLLM
label_desc: Use image node_id 8 for calling the BigdlNativeLLM obj's underlying member method code with example usage: obj.get_num_tokens(text) and returns: len