code: def test_condition_decision():
      def raise_(ex):  # just to test error in condition
          raise ex
  
      # Arrange
      check = (
          DummyCheck()
          .add_condition("condition A", lambda _: True)
          .add_condition(
              "condition B",
              lambda _: ConditionResult(
                  ConditionCategory.FAIL, "some result"
              ),
          )
          .add_condition(
              "condition C",
              lambda _: ConditionResult(
                  ConditionCategory.WARN, "my actual"
              ),
          )
          .add_condition(
              "condition F", lambda _: raise_(Exception("fail"))
          )
      )
  
      decisions = check.conditions_decision(CheckResult(1))
  
      # Assert
      assert_that(
          decisions,
          has_items(
              all_of(
                  has_property("name", "condition A"),
                  has_property("category", ConditionCategory.PASS),
                  has_property("details", ""),
              ),
              all_of(
                  has_property("name", "condition B"),
                  has_property("category", ConditionCategory.FAIL),
                  has_property("details", "some result"),
              ),
              all_of(
                  has_property("name", "condition C"),
                  has_property("category", ConditionCategory.WARN),
                  has_property("details", "my actual"),
              ),
              all_of(
                  has_property("name", "condition F"),
                  has_property("category", ConditionCategory.ERROR),
                  has_property(
                      "details",
                      "Exception in condition: Exception: fail",
                  ),
              ),
          ),
      )
  
imports: import numpy
  import pandas
  from hamcrest import *
  from deepchecks import __version__
  from deepchecks.core import BaseCheck, CheckResult, ConditionResult
  from deepchecks.core.condition import ConditionCategory
  from deepchecks.core.errors import DeepchecksValueError
  from deepchecks.tabular import Context, TrainTestCheck
label_desc: Use image node_id 8 for calling a global function with example usage: test_condition_decision() without return types