code: def encode_with_offsets(
      self, sentences: SentencesType, output_type: type = str
  ) -> Tuple[Union[TokensType, TokenIDsType], TokenOffsetsType]:
      return hf_encode_with_offsets(self._model, sentences, output_type)
  
imports: import os
  import json
  from pkg_resources import parse_version
  from typing import Optional, Union, List, Tuple
  from collections import OrderedDict
  from uuid import uuid4
  from .base import *
  from ..vocab import Vocab, load_vocab
  from ...utils.lazy_imports import try_import_huggingface_tokenizers
label_desc: Use image node_id 4 for calling the LegacyHuggingFaceTokenizer obj's underlying member method code with example usage: obj.encode_with_offsets(sentences, output_type) and returns: hf_encode_with_offsets