code: def remove_sequential(
      network: nn.Module, all_layers: List[nn.Module]
  ):
      for layer in network.children():
          # if sequential layer, apply recursively to layers in sequential layer
          if isinstance(layer, nn.Sequential):
              # print(layer)
              remove_sequential(layer, all_layers)
          else:  # if leaf node, add it to list
              # print(layer)
              all_layers.append(layer)
  
file_path: avalanche/avalanche/models/mobilenetv1.py
imports: from typing import List
  import torch.nn
  import torch
  from pytorchcv.models.mobilenet import mobilenet_w1
label_desc: Use image node_id 1 for calling a global function with example usage: remove_sequential(network, all_layers) without return types