code: def test_check_array_complex_data_error():
      X = mt.array([[1 + 2j, 3 + 4j, 5 + 7j], [2 + 3j, 4 + 5j, 6 + 7j]])
      assert_raises_regex(
          ValueError, "Complex data not supported", check_array, X
      )
  
      # list of lists
      X = [[1 + 2j, 3 + 4j, 5 + 7j], [2 + 3j, 4 + 5j, 6 + 7j]]
      assert_raises_regex(
          ValueError, "Complex data not supported", check_array, X
      )
  
      # tuple of tuples
      X = ((1 + 2j, 3 + 4j, 5 + 7j), (2 + 3j, 4 + 5j, 6 + 7j))
      assert_raises_regex(
          ValueError, "Complex data not supported", check_array, X
      )
  
      # list of np arrays
      X = [
          mt.array([1 + 2j, 3 + 4j, 5 + 7j]),
          mt.array([2 + 3j, 4 + 5j, 6 + 7j]),
      ]
      assert_raises_regex(
          ValueError, "Complex data not supported", check_array, X
      )
  
      # tuple of np arrays
      X = (
          mt.array([1 + 2j, 3 + 4j, 5 + 7j]),
          mt.array([2 + 3j, 4 + 5j, 6 + 7j]),
      )
      assert_raises_regex(
          ValueError, "Complex data not supported", check_array, X
      )
  
      # dataframe
      X = MockDataFrame(
          mt.array([[1 + 2j, 3 + 4j, 5 + 7j], [2 + 3j, 4 + 5j, 6 + 7j]])
      )
      assert_raises_regex(
          ValueError, "Complex data not supported", check_array, X
      )
  
      # sparse matrix
      X = sp.coo_matrix([[0, 1 + 2j], [0, 0]])
      assert_raises_regex(
          ValueError, "Complex data not supported", check_array, X
      )
  
imports: from itertools import product
  import numpy
  import pytest
  import scipy.sparse
  from sklearn.utils.estimator_checks import _NotAnArray
  from sklearn.utils._mocking import MockDataFrame
  from sklearn.utils._testing import assert_raise_message, assert_raises_regex
  from ....None import tensor
  from ....None import dataframe
  from ....tensor.core import Tensor
  from ..validation import check_array, check_consistent_length
label_desc: Use image node_id 8 for calling a global function with example usage: test_check_array_complex_data_error() without return types