class_docstr: ModuleV1 is an old version of the PaddleHub Module format, which is no longer in use. In order to maintain
  compatibility, users can still load the corresponding Module for prediction. User should call `hub.Module`
  to initialize the corresponding object, rather than `ModuleV1`.
code: def _update_bert_max_seq_len(
      self,
      program: paddle.static.Program,
      feed_dict: dict,
      max_seq_len: int = 128,
  ):
      MAX_SEQ_LENGTH = 512
      if max_seq_len > MAX_SEQ_LENGTH or max_seq_len <= 0:
          raise ValueError(
              "max_seq_len({}) should be in the range of [1, {}]".format(
                  max_seq_len, MAX_SEQ_LENGTH
              )
          )
      log.logger.info(
          "Set maximum sequence length of input tensor to {}".format(
              max_seq_len
          )
      )
      if self.name.startswith("ernie_v2"):
          feed_list = [
              "input_ids",
              "position_ids",
              "segment_ids",
              "input_mask",
              "task_ids",
          ]
      else:
          feed_list = [
              "input_ids",
              "position_ids",
              "segment_ids",
              "input_mask",
          ]
      for tensor_name in feed_list:
          seq_tensor_shape = [-1, max_seq_len, 1]
          log.logger.info(
              "The shape of input tensor[{}] set to {}".format(
                  tensor_name, seq_tensor_shape
              )
          )
          program.global_block().var(
              feed_dict[tensor_name].name
          ).desc.set_shape(seq_tensor_shape)
  
imports: import functools
  import os
  from typing import List
  from typing import Tuple
  import paddle.io
  import paddle2onnx
  from easydict import EasyDict
  from paddlehub.compat import paddle_utils
  from paddlehub.compat.module import module_v1_utils
  from paddlehub.utils import log
  from paddlehub.utils import utils
label_desc: Use image node_id 9 for calling the ModuleV1 obj's underlying member method code with example usage: obj._update_bert_max_seq_len(program, feed_dict, max_seq_len) without return types