class_docstr: Base class for check.
class_docstr_tok: ["Base","class","for","check","."]
docstr: Run conditions on given result.
docstr_tok: ["Run","conditions","on","given","result","."]
code: def conditions_decision(
      self, result: "check_types.CheckResult"
  ) -> List[ConditionResult]:
      """Run conditions on given result."""
      results = []
      condition: Condition
      for condition in self._conditions.values():
          try:
              output = condition.function(
                  result.value, **condition.params
              )
          except Exception as e:
              msg = f"Exception in condition: {e.__class__.__name__}: {str(e)}"
              output = ConditionResult(ConditionCategory.ERROR, msg)
          if isinstance(output, bool):
              output = ConditionResult(
                  ConditionCategory.PASS
                  if output
                  else ConditionCategory.FAIL
              )
          elif not isinstance(output, ConditionResult):
              raise DeepchecksValueError(
                  f"Invalid return type from condition {condition.name}, got: {type(output)}"
              )
          output.set_name(condition.name)
          results.append(output)
      return results
  
imports: import abc
  import enum
  import json
  from collections import OrderedDict
  from typing import Any, Callable, ClassVar, Dict, List, Optional, Type, Union, cast
  from typing_extensions import NotRequired, Self, TypedDict
  from deepchecks import __version__
  from deepchecks.core import check_result
  from deepchecks.core.condition import Condition, ConditionCategory, ConditionResult
  from deepchecks.core.errors import DeepchecksValueError
  from deepchecks.utils.function import initvars
  from deepchecks.utils.strings import get_docs_summary, split_camel_case
  from .None import common
label_desc: Use image node_id 3 for calling the BaseCheck obj's underlying member method code with example usage: obj.conditions_decision(result) and returns: results