code: def test_no_dates_from_val_before_train_date_in_index():
      train_ds = Dataset(
          pd.DataFrame(
              np.ones((7, 1)),
              columns=["col1"],
              index=[
                  datetime(2021, 10, 3, 0, 0),
                  datetime(2021, 10, 3, 1, 0),
                  datetime(2021, 10, 4, 0, 0),
                  datetime(2021, 10, 4, 1, 0),
                  datetime(2021, 10, 4, 0, 0),
                  datetime(2021, 10, 5, 0, 0),
                  datetime(2021, 10, 5, 1, 0),
              ],
          ),
          set_datetime_from_dataframe_index=True,
      )
      val_ds = Dataset(
          pd.DataFrame(
              np.ones((3, 1)),
              columns=["col1"],
              index=[
                  datetime(2021, 10, 6, 0, 0),
                  datetime(2021, 10, 6, 1, 0),
                  datetime(2021, 10, 6, 2, 0),
              ],
          ),
          set_datetime_from_dataframe_index=True,
      )
      check_obj = DateTrainTestLeakageOverlap()
      assert_that(check_obj.run(train_ds, val_ds).value, equal_to(0))
  
imports: from datetime import datetime
  import numpy
  import pandas
  from hamcrest import assert_that, calling, close_to, equal_to, greater_than, has_items, has_length, raises
  from deepchecks.core.errors import DatasetValidationError, DeepchecksValueError
  from deepchecks.tabular.checks.train_test_validation import DateTrainTestLeakageDuplicates, DateTrainTestLeakageOverlap
  from deepchecks.tabular.dataset import Dataset
  from tests.base.utils import equal_condition_result
label_desc: Use image node_id 10 for calling a global function with example usage: test_no_dates_from_val_before_train_date_in_index() without return types