code: def test_verify_module_duplicate_parameters_on_distinct_devices():
      class Surrogate(nn.Module):
          def __init__(self, module):
              super().__init__()
              self.module = module
  
      conv = nn.Conv2d(3, 3, 1)
      model = nn.Sequential(Surrogate(conv), Surrogate(conv))
  
      with pytest.raises(
          ValueError,
          match="module with duplicate parameters on distinct devices is not supported",
      ):
          Pipe(model, [1, 1], devices=["cpu", "cuda"])
  
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 33 for calling a global function with example usage: test_verify_module_duplicate_parameters_on_distinct_devices() without return types