code: def test_scalar_device_initialization_decimal(value, decimal_type):
      dtype = decimal_type._from_decimal(value)
      column = cudf.Series([str(value)]).astype(dtype)._column
      dev_slr = get_element(column, 0)
  
      s = cudf.Scalar.from_device_scalar(dev_slr)
  
      assert s._is_device_value_current
      assert not s._is_host_value_current
  
      assert s.value == value
  
      assert s._is_device_value_current
      assert s._is_host_value_current
  
imports: import datetime
  import re
  from decimal import Decimal
  import numpy
  import pandas
  import pyarrow
  import pytest
  import rmm
  import cudf
  from cudf._lib.copying import get_element
  from cudf.testing._utils import ALL_TYPES, DATETIME_TYPES, NUMERIC_TYPES, TIMEDELTA_TYPES
label_desc: Use image node_id 4 for calling a global function with example usage: test_scalar_device_initialization_decimal(value, decimal_type) without return types