code: def test_date_duration_scalars(value):
      s = cudf.Scalar(value)
  
      actual = s.value
  
      if isinstance(value, datetime.datetime):
          expected = np.datetime64(value)
      elif isinstance(value, datetime.timedelta):
          expected = np.timedelta64(value)
      elif isinstance(value, pd.Timestamp):
          expected = value.to_datetime64()
      elif isinstance(value, pd.Timedelta):
          expected = value.to_timedelta64()
  
      np.testing.assert_equal(actual, expected)
      assert s.is_valid() is True
  
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 11 for calling a global function with example usage: test_date_duration_scalars(value) without return types