code: def test_comparisons(self):
      dates1 = dateslib.dates_from_tuples(
          [(2020, 3, 15), (2020, 3, 31), (2021, 2, 28)]
      )
      dates2 = dateslib.dates_from_tuples(
          [(2020, 3, 18), (2020, 3, 31), (2019, 2, 28)]
      )
      self.assertAllEqual(
          np.array([False, True, False]), dates1 == dates2
      )
      self.assertAllEqual(
          np.array([True, False, True]), dates1 != dates2
      )
      self.assertAllEqual(
          np.array([False, False, True]), dates1 > dates2
      )
      self.assertAllEqual(
          np.array([False, True, True]), dates1 >= dates2
      )
      self.assertAllEqual(
          np.array([True, False, False]), dates1 < dates2
      )
      self.assertAllEqual(
          np.array([True, True, False]), dates1 <= dates2
      )
  
imports: import datetime
  import numpy
  import tensorflow.compat.v2
  import tf_quant_finance
  from tf_quant_finance.datetime import test_data
  from tensorflow.python.framework import test_util
label_desc: Use image node_id 23 for calling the DateTensorTest obj's underlying member method code with example usage: obj.test_comparisons() without return types