code: def test_series_dataframe__array__(data, dtype):
      gs = data
  
      with pytest.raises(TypeError):
          gs.__array__(dtype=dtype)
  
file_path: cudf/python/cudf/cudf/tests/test_numpy_interop.py
imports: import numpy
  import pytest
  from cudf import DataFrame, Series
  from cudf.testing._utils import assert_eq
label_desc: Use image node_id 6 for calling a global function with example usage: test_series_dataframe__array__(data, dtype) without return types