code: def test_column_mixed_dtype(data, error):
      if error is None:
          cudf.Series(data)
      else:
          with pytest.raises(error):
              cudf.Series(data)
  
imports: import cupy
  import numpy
  import pandas
  import pyarrow
  import pytest
  import cudf
  from cudf._lib.transform import mask_to_bools
  from cudf.core.column.column import as_column
  from cudf.testing._utils import assert_eq, assert_exceptions_equal
  from cudf.utils import dtypes
label_desc: Use image node_id 8 for calling a global function with example usage: test_column_mixed_dtype(data, error) without return types