class_docstr: Contain condition attributes.
  
  Parameters
  ----------
  name : str
  function : Callable
  params : Dict
class_docstr_tok: ["Contain","condition","attributes",".","Parameters","--","--","--","--","--","name",":","str","function",":","Callable","params",":","Dict"]
code: def __init__(self, name: str, function: Callable, params: Dict):
      if not isinstance(function, Callable):
          raise DeepchecksValueError(
              f"Condition must be a function `(Any) -> Union[ConditionResult, bool]`, "
              f"but got: {type(function).__name__}"
          )
      if not isinstance(name, str):
          raise DeepchecksValueError(
              f"Condition name must be of type str but got: {type(name).__name__}"
          )
      self.name = name
      self.function = function
      self.params = params
  
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 1 to create a new Condition object  with example: obj = Condition(name, function, params)