code: def tokenize_batch(self, prompt, max_len, add_BOS):
      context_tokens = self.process_prompts(prompt)
      context_tokens, context_lengths = pad_batch(
          context_tokens, self.tokenizer.eos_id, max_len
      )
      context_tokens_tensor = torch.cuda.LongTensor(context_tokens)
      context_length_tensor = torch.cuda.LongTensor(context_lengths)
      return context_tokens_tensor, context_length_tensor
  
imports: import abc
  import copy
  import os
  import re
  import warnings
  from typing import List, Set, Tuple
  import torch
  from transformers import CLIPImageProcessor
  from nemo.collections.nlp.modules.common.lm_utils import pad_batch
  from nemo.collections.nlp.modules.common.megatron.utils import get_ltor_masks_and_position_ids
label_desc: Use image node_id 5 for calling the NevaModelTextGenerationStrategy obj's underlying member method code with example usage: obj.tokenize_batch(prompt, max_len, add_BOS) and returns: context_tokens_tensor,  context_length_tensor