code: def __init__(self, max_seq_length):
      self.max_valid_length = 0
      self.max_seq_length = max_seq_length
      self.range_idx = np.arange(max_seq_length)
  
file_path: jiant/jiant/proj/main/preprocessing.py
imports: import numpy
  import torch
  import jiant.shared.caching
  import jiant.utils.torch_utils
  from jiant.tasks.core import FeaturizationSpec, TaskTypes
  from jiant.utils.display import maybe_tqdm, maybe_trange
label_desc: Use image node_id 1 to create a new MaxValidLengthRecorder object  with example: obj = MaxValidLengthRecorder(max_seq_length)