docstr: clip the max len based on the LM model max sequence length
code: def clip_max_len(self, maxlen: int) -> int:
      """clip the max len based on the LM model max sequence length"""
      if maxlen > self.model.frozen_model.cfg.encoder_seq_length + 1:
          maxlen = self.model.frozen_model.cfg.encoder_seq_length + 1
      return maxlen
  
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 3 for calling the PromptLearningModelTextGenerationStrategy obj's underlying member method code with example usage: obj.clip_max_len(maxlen) and returns: maxlen