code: def test_condition_pass_on_duplicates():
      # Arrange
      train_ds = dataset_from_dict(
          {
              "col1": [
                  datetime(2021, 10, 1, 0, 0),
                  datetime(2021, 10, 1, 0, 0),
                  datetime(2021, 10, 1, 0, 0),
                  datetime(2021, 10, 2, 0, 0),
                  datetime(2021, 10, 2, 0, 0),
                  datetime(2021, 10, 2, 0, 0),
                  datetime(2021, 10, 3, 0, 0),
                  datetime(2021, 10, 3, 0, 0),
                  datetime(2021, 10, 3, 0, 0),
                  datetime(2021, 10, 4, 0, 0),
                  datetime(2021, 10, 4, 0, 0),
                  datetime(2021, 10, 4, 0, 0),
              ]
          },
          "col1",
      )
      val_ds = dataset_from_dict(
          {
              "col1": [
                  datetime(2021, 10, 5, 0, 0),
                  datetime(2021, 10, 6, 0, 0),
                  datetime(2021, 10, 6, 0, 0),
                  datetime(2021, 10, 7, 0, 0),
                  datetime(2021, 10, 7, 0, 0),
                  datetime(2021, 10, 8, 0, 0),
                  datetime(2021, 10, 8, 0, 0),
                  datetime(2021, 10, 9, 0, 0),
                  datetime(2021, 10, 9, 0, 0),
              ]
          },
          "col1",
      )
  
      check = (
          DateTrainTestLeakageDuplicates().add_condition_leakage_ratio_less_or_equal()
      )
  
      # Act
      result = check.conditions_decision(check.run(train_ds, val_ds))
  
      assert_that(
          result,
          has_items(
              equal_condition_result(
                  is_pass=True,
                  name="Date leakage ratio is less or equal to 0%",
                  details="No leaked dates found",
              )
          ),
      )
  
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 16 for calling a global function with example usage: test_condition_pass_on_duplicates() without return types