code: def _encode(self, texts):
      batch_tokens = []
      batch_token_idxs = []
      batch_char_ends = []
      batch_char_starts = []
      for i, text in enumerate(texts):
          encoded = self.tokenizer._tokenizer.encode(
              text, add_special_tokens=False
          )
          batch_token_idxs.append(
              [
                  i + self.offset
                  if i not in self.mapping
                  else self.mapping[i]
                  for i in encoded.ids
              ]
          )
          token_ends = []
          token_starts = []
          tokens = []
          for (start, end), t in zip(encoded.offsets, encoded.tokens):
              if (
                  t.startswith("Ġ")
                  or t.startswith("Ċ")
                  or t.startswith("Â")
              ):
                  t = t[1:]
              tokens.append(t.strip())
              if token_ends:
                  # tokenizers outputs start and end tokens that duplicate in the case of
                  #  a single char mapping to multiple tokens.
                  start = max(token_ends[-1], start)
              if end - start > len(t):
                  start = end - len(t)
              token_starts.append(start)
              token_ends.append(end)
  
          batch_tokens.append(tokens)
          batch_char_ends.append(token_ends)
          batch_char_starts.append(token_starts)
      return EncodedOutput(
          token_ids=batch_token_idxs,
          tokens=batch_tokens,
          token_ends=batch_char_ends,
          token_starts=batch_char_starts,
      )
  
imports: import os
  import finetune
  from finetune.encoding.input_encoder import BaseEncoder, EncodedOutput
  from finetune.base_models.gpt2.encoder import GPT2Encoder, bytes_to_unicode
  from finetune.base_models.gpt2 import encoder
  from transformers import RobertaTokenizerFast
label_desc: Use image node_id 3 for calling the RoBERTaEncoderV2 obj's underlying member method code with example usage: obj._encode(texts) and returns: EncodedOutput