class_docstr: Mask item sequence for training.
class_docstr_tok: ["Mask","item","sequence","for","training","."]
code: def _padding_sequence(self, sequence, max_length):
      pad_len = max_length - len(sequence)
      sequence = [0] * pad_len + sequence
      sequence = sequence[
          -max_length:
      ]  # truncate according to the max_length
      return sequence
  
imports: import math
  import numpy
  import random
  import torch
  from copy import deepcopy
  from recbole.data.interaction import Interaction, cat_interactions
label_desc: Use image node_id 3 for calling the MaskItemSequence obj's underlying member method code with example usage: obj._padding_sequence(sequence, max_length) and returns: sequence