code: def test_verify_module_non_sequential():
      with pytest.raises(
          TypeError,
          match="module must be nn.Sequential to be partitioned",
      ):
          Pipe(nn.Module(), [1])
  
imports: from collections import OrderedDict
  from copy import deepcopy
  import time
  import pytest
  import torch
  from torch import nn
  from fairscale.nn.pipe import Pipe
label_desc: Use image node_id 31 for calling a global function with example usage: test_verify_module_non_sequential() without return types