code: def test_struct_scalar_host_construction_no_dtype_inference(
      data, dtype
  ):
      # cudf cannot infer the dtype of the scalar when it contains only nulls or
      # is empty.
      slr = cudf.Scalar(data, dtype=dtype)
      assert slr.value == data
      assert list(slr.device_value.value.values()) == list(
          data.values()
      )
  
imports: import numpy
  import pandas
  import pyarrow
  import pytest
  import cudf
  from cudf.core.dtypes import StructDtype
  from cudf.testing._utils import DATETIME_TYPES, TIMEDELTA_TYPES, assert_eq
label_desc: Use image node_id 10 for calling a global function with example usage: test_struct_scalar_host_construction_no_dtype_inference(data, dtype) without return types