class_docstr: Contain result of a condition function.
  
  Parameters
  ----------
  category : ConditionCategory
      The category to which the condition result belongs.
  details : str
      What actually happened in the condition.
class_docstr_tok: ["Contain","result","of","a","condition","function",".","Parameters","--","--","--","--","--","category",":","ConditionCategory","The","category","to","which","the","condition","result","belongs",".","details",":","str","What","actually","happened","in","the","condition","."]
docstr: Return true if the condition has passed.
docstr_tok: ["Return","true","if","the","condition","has","passed","."]
code: def is_pass(self, fail_if_warning=True) -> bool:
      """Return true if the condition has passed."""
      passed_categories = (
          (ConditionCategory.PASS,)
          if fail_if_warning
          else (ConditionCategory.PASS, ConditionCategory.WARN)
      )
      return self.category in passed_categories
  
file_path: deepchecks/deepchecks/core/condition.py
imports: import enum
  from typing import Callable, Dict, cast
  from deepchecks.core.errors import DeepchecksValueError
label_desc: Use image node_id 4 for calling the ConditionResult obj's underlying member method code with example usage: obj.is_pass(fail_if_warning) and returns: unknown