code: def test_datetime_index(self):
      with self.assertRaisesRegex(
          TypeError, "Index.name must be a hashable type"
      ):
          ps.DatetimeIndex(
              ["2004-01-01", "2002-12-31", "2000-04-01"], name=[(1, 2)]
          )
      with self.assertRaisesRegex(
          TypeError,
          "Cannot perform 'all' with this index type: DatetimeIndex",
      ):
          ps.DatetimeIndex(
              ["2004-01-01", "2002-12-31", "2000-04-01"]
          ).all()
  
imports: import pandas
  import pyspark.pandas
  from pyspark.testing.pandasutils import PandasOnSparkTestCase, TestUtils
label_desc: Use image node_id 1 for calling the DatetimeIndexTestsMixin obj's underlying member method code with example usage: obj.test_datetime_index() without return types