code: def get_token_ids(self, text: str) -> typing.List[int]:
      tokenizer = self.tokenizer
      if tokenizer is not None:
          return tokenizer.encode(text)
      else:
          return FakeTokenizer().encode(text)["input_ids"]
  
file_path: h2ogpt/src/sagemaker.py
imports: import os
  import typing
  import json
  from langchain.llms import SagemakerEndpoint
  from langchain.llms.sagemaker_endpoint import LLMContentHandler
  from pydantic.v1 import root_validator
  from src.utils import FakeTokenizer
label_desc: Use image node_id 2 for calling the H2OSagemakerEndpoint obj's underlying member method code with example usage: obj.get_token_ids(text) and returns: tokenizer, FakeTokenizer