code: def test_condition_pass(adult_split_dataset_and_model):
      # Arrange
      _, test, model = adult_split_dataset_and_model
      check = PerformanceBias("sex")
      check.add_condition_bounded_performance_difference(
          lower_bound=-0.04
      )
      check2 = PerformanceBias("sex")
      check2.add_condition_bounded_relative_performance_difference(
          lower_bound=-0.042
      )
  
      # Act
      result = check.run(test, model)
      condition_result = result.conditions_results
      result2 = check2.run(test, model)
      condition_result2 = result2.conditions_results
  
      # Assert
      assert_that(
          condition_result,
          has_items(
              has_properties(
                  category=ConditionCategory.PASS,
                  name="Performance differences are bounded between -0.04 and inf.",
                  details="Found 0 subgroups with performance differences outside of the given bounds.",
              )
          ),
      )
      assert_that(
          condition_result2,
          has_items(
              has_properties(
                  category=ConditionCategory.PASS,
                  name="Relative performance differences are bounded between -0.042 and inf.",
                  details="Found 0 subgroups with relative performance differences outside of the given bounds.",
              )
          ),
      )
  
file_path: deepchecks/tests/tabular/checks/model_evaluation/performance_bias_test.py
imports: import numpy
  import pandas
  from hamcrest import all_of, any_of, assert_that, calling, close_to, equal_to, has_entries, has_items, has_length, has_properties, has_property, raises
  from sklearn.metrics import f1_score, make_scorer
  from deepchecks import ConditionCategory
  from deepchecks.core.errors import DeepchecksNotSupportedError, DeepchecksValueError
  from deepchecks.tabular.checks.model_evaluation import PerformanceBias
  from tests.base.utils import equal_condition_result
label_desc: Use image node_id 4 for calling a global function with example usage: test_condition_pass(adult_split_dataset_and_model) without return types