code: def verify_module(module: nn.Sequential) -> None:
      if not isinstance(module, nn.Sequential):
          raise TypeError(
              "module must be nn.Sequential to be partitioned"
          )
  
      named_children = list(module.named_children())
      if len(named_children) != len(module):
          raise ValueError(
              "module with duplicate children is not supported"
          )
  
imports: from collections import OrderedDict
  from typing import TYPE_CHECKING, Any, Iterable, List, Optional, Tuple, Union, cast
  import warnings
  import torch
  from torch import Tensor, nn
  import torch.autograd
  import torch.cuda
  from fairscale.internal import torch_version
  from .None import microbatch
  from .batchnorm import DeferredBatchNorm
  from .pipeline import Pipeline
  from .skip.layout import inspect_skip_layout
  from .skip.skippable import verify_skippables
  from .stream import AbstractStream, new_stream
label_desc: Use image node_id 2 for calling a global function with example usage: verify_module(module) without return types