code: def test_condition_with_argument():
      # Arrange
      data = {"col1": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1000]}
      dataset = Dataset(pd.DataFrame(data=data), cat_features=[])
      # Act
      check = OutlierSampleDetection(
          nearest_neighbors_percent=0.2
      ).add_condition_outlier_ratio_less_or_equal(0.1)
      result = check.conditions_decision(check.run(dataset))
      # Assert
      assert_that(
          result,
          has_items(
              equal_condition_result(
                  is_pass=True,
                  details="8.3% of dataset samples above outlier threshold",
                  name="Ratio of samples exceeding the outlier score threshold 0.7 is less or equal to "
                  "10%",
              )
          ),
      )
  
imports: import numpy
  import pandas
  from hamcrest import assert_that, calling, greater_than, has_item, has_items, has_length, raises
  from deepchecks.core.errors import DeepchecksValueError
  from deepchecks.tabular.checks import OutlierSampleDetection
  from deepchecks.tabular.dataset import Dataset
  from deepchecks.tabular.datasets.regression import avocado
  from tests.base.utils import equal_condition_result
label_desc: Use image node_id 3 for calling a global function with example usage: test_condition_with_argument() without return types