code: def test_column_view_invalid_numeric_to_numeric(
      data, from_dtype, to_dtype
  ):
      cpu_data = np.asarray(data, dtype=from_dtype)
      gpu_data = as_column(data, dtype=from_dtype)
  
      assert_exceptions_equal(
          lfunc=cpu_data.view,
          rfunc=gpu_data.view,
          lfunc_args_and_kwargs=([to_dtype],),
          rfunc_args_and_kwargs=([to_dtype],),
      )
  
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 14 for calling a global function with example usage: test_column_view_invalid_numeric_to_numeric(data, from_dtype, to_dtype) without return types