code: def test_hybridblock_mix_device_raise():
      class FooHybrid(gluon.HybridBlock):
          def forward(self, a, b):
              if isinstance(a, (list, tuple)):
                  a = sum(a)
              if isinstance(b, (list, tuple)):
                  b = sum(b)
              return a + b
  
      foo_hybrid = FooHybrid()
      foo_hybrid.hybridize()
      pytest.raises(
          ValueError,
          lambda: foo_hybrid(
              mx.np.ones((10,), device=mx.gpu()),
              mx.np.ones((10,), device=mx.cpu()),
          ),
      )
  
imports: import sys
  import os
  import time
  import random
  import mxnet
  import multiprocessing
  from mxnet.test_utils import check_consistency, set_default_device, assert_almost_equal, rand_ndarray, environment
  import numpy
  import math
  from mxnet import autograd
  import pytest
  from common import assert_raises_cudnn_not_satisfied, run_in_spawned_process, random_seed
  from test_gluon import *
  from test_loss import *
  from test_numpy_loss import *
  from test_gluon_rnn import *
label_desc: Use image node_id 18 for calling a global function with example usage: test_hybridblock_mix_device_raise() and returns: unknown