code: def test_where_datetime(self):
      # GH 3311
      df = DataFrame(
          {
              "A": date_range("20130102", periods=5),
              "B": date_range("20130104", periods=5),
              "C": np.random.default_rng(2).standard_normal(5),
          }
      )
  
      stamp = datetime(2013, 1, 3)
      msg = "'>' not supported between instances of 'float' and 'datetime.datetime'"
      with pytest.raises(TypeError, match=msg):
          df > stamp
  
      result = df[df.iloc[:, :-1] > stamp]
  
      expected = df.copy()
      expected.loc[[0, 1], "A"] = np.nan
  
      expected.loc[:, "C"] = np.nan
      tm.assert_frame_equal(result, expected)
  
imports: from datetime import datetime
  from hypothesis import given
  import numpy
  import pytest
  from pandas.core.dtypes.common import is_scalar
  import pandas
  from pandas import DataFrame, DatetimeIndex, Index, Series, StringDtype, Timestamp, date_range, isna
  import pandas._testing
  from pandas._testing._hypothesis import OPTIONAL_ONE_OF_ALL
label_desc: Use image node_id 15 for calling the TestDataFrameIndexingWhere obj's underlying member method code with example usage: obj.test_where_datetime() without return types