code: def test_column_view_valid_string_to_numeric(data, to_dtype):
      expect = cudf.Series(cudf.Series(data)._column.view(to_dtype))
      got = cudf.Series(str_host_view(data, to_dtype))
  
      assert_eq(expect, got)
  
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 15 for calling a global function with example usage: test_column_view_valid_string_to_numeric(data, to_dtype) without return types