class_docstr: Base class for check.
class_docstr_tok: ["Base","class","for","check","."]
docstr: Add new condition function to the check.
  
  Parameters
  ----------
  name : str
      Name of the condition. should explain the condition action and parameters
  condition_func : Callable[[Any], Union[List[ConditionResult], bool]]
      Function which gets the value of the check and returns object of List[ConditionResult] or boolean.
  params : dict
      Additional parameters to pass when calling the condition function.
docstr_tok: ["Add","new","condition","function","to","the","check",".","Parameters","--","--","--","--","--","name",":","str","Name","of","the","condition",".","should","explain","the","condition","action","and","parameters","condition_func",":","Callable","[","[","Any","]",",","Union","[","List","[","ConditionResult","]",",","bool","]","]","Function","which","gets","the","value","of","the","check","and","returns","object","of","List","[","ConditionResult","]","or","boolean",".","params",":","dict","Additional","parameters","to","pass","when","calling","the","condition","function","."]
code: def add_condition(
      self,
      name: str,
      condition_func: Callable[[Any], Union[ConditionResult, bool]],
      **params,
  ):
      """Add new condition function to the check.
  
      Parameters
      ----------
      name : str
          Name of the condition. should explain the condition action and parameters
      condition_func : Callable[[Any], Union[List[ConditionResult], bool]]
          Function which gets the value of the check and returns object of List[ConditionResult] or boolean.
      params : dict
          Additional parameters to pass when calling the condition function.
  
      """
      cond = Condition(name, condition_func, params)
      self._conditions[self._conditions_index] = cond
      self._conditions_index += 1
      return self
  
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 4 for calling the BaseCheck obj's underlying member method code with example usage: obj.add_condition(name, condition_func) and returns: self