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 priority of the current condition.
  
  This value is primarily used to determine the order in which
  conditions should be displayed.
  
  Returns
  -------
  int
      condition priority value.
docstr_tok: ["Return","priority","of","the","current","condition",".","This","value","is","primarily","used","to","determine","the","order","in","which","conditions","should","be","displayed",".","Returns","--","--","--","-","int","condition","priority","value","."]
code: def priority(self) -> int:
      """Return priority of the current condition.
  
      This value is primarily used to determine the order in which
      conditions should be displayed.
  
      Returns
      -------
      int
          condition priority value.
      """
      if self.category == ConditionCategory.PASS:
          return 4
      elif self.category == ConditionCategory.FAIL:
          return 1
      elif self.category == ConditionCategory.WARN:
          return 2
      return 3
  
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 3 for calling the ConditionResult obj's underlying member method code with example usage: obj.priority() and returns: int, int, int, int