code: def str_host_view(list_of_str, to_dtype):
      return np.concatenate(
          [
              np.frombuffer(s.encode("utf-8"), dtype=to_dtype)
              for s in list_of_str
          ]
      )
  
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 2 for calling a global function with example usage: str_host_view(list_of_str, to_dtype) and returns: np