code: def __init__(self, op_list: list[nn.Module or None]):
      super().__init__()
      valid_op_list = []
      for op in op_list:
          if op is not None:
              valid_op_list.append(op)
      self.op_list = nn.ModuleList(valid_op_list)
  
imports: from __future__ import annotations
  import torch
  import torch.nn.functional
  from torch import nn
  from torch.cuda.amp import autocast
  from kornia.contrib.models.efficient_vit.nn.act import build_act
  from kornia.contrib.models.efficient_vit.nn.norm import build_norm
  from kornia.contrib.models.efficient_vit.utils import get_same_padding, val2tuple
label_desc: Use image node_id 1 to create a new OpSequential object from inherited base classes: nn with example: obj = OpSequential(op_list)