class_docstr: Modified sequential class.
class_docstr_tok: ["Modified","sequential","class","."]
code: def __len__(self):
      return len(self.seq_modules)
  
imports: import torch
  from typing import Optional
  from random import randrange
  from transformers import PretrainedConfig
  from .components import EmbeddingComponent, AttentionComponent, FFNComponent, PredictionHeadComponent, get_extended_attention_mask, _get_norm_fn, _get_nonlin_fn, _init_module
label_desc: Use image node_id 3 for calling the SequentialwithMask obj's underlying member method code with example usage: obj.__len__() and returns: len