code: def _ensure_no_complex_data(array):
      if (
          hasattr(array, "dtype")
          and array.dtype is not None
          and hasattr(array.dtype, "kind")
          and array.dtype.kind == "c"
      ):
          raise ValueError(f"Complex data not supported\n{array}\n")
  
imports: import warnings
  import numbers
  import numpy
  from numpy.core.numeric import ComplexWarning
  from ...None import dataframe
  from ...None import tensor
  from ...core import ExecutableTuple
  from ...lib.sparse import issparse
  from ...tensor import Tensor
  from .checks import check_non_negative_then_return_value, assert_all_finite, AssertAllFinite
label_desc: Use image node_id 5 for calling a global function with example usage: _ensure_no_complex_data(array) without return types