code: def test_scalar_invalid_implicit_conversion(cls, dtype):
      try:
          cls(
              pd.NaT
              if cudf.api.types.is_datetime64_dtype(dtype)
              or cudf.api.types.is_timedelta64_dtype(dtype)
              else pd.NA
          )
      except TypeError as e:
          with pytest.raises(TypeError, match=re.escape(str(e))):
              slr = cudf.Scalar(None, dtype=dtype)
              cls(slr)
  
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 15 for calling a global function with example usage: test_scalar_invalid_implicit_conversion(cls, dtype) without return types