code: def __init__(self, *args, **kwargs):
      for idx, module in enumerate(args):
          if not isinstance(module, tuple):
              if isinstance(module, nn.Module):
                  self.submodules[module.name + "_" + str(idx)] = module
              else:
                  raise TypeError(
                      "The input layer {}/{} should be a instance of nn.Module".format(
                          self.name, module.__class__.__name__
                      )
                  )
          else:
              if isinstance(module[1], nn.Module):
                  self.submodules[module[0]] = module[1]
              else:
                  raise TypeError(
                      "The input layer {}/{} should be a instance of nn.Module".format(
                          self.name, module[1].__class__.__name__
                      )
                  )
  
imports: import nnabla
label_desc: Use image node_id 1 to create a new Sequential object from inherited base classes: nn with example: obj = Sequential()