class_docstr: An `Op` that checks conditions and raises an exception if they fail.
  
  This `Op` returns its "value" argument if its condition arguments are all
  ``True``; otherwise, it raises a user-specified exception.
class_docstr_tok: ["An","`","Op","`","that","checks","conditions","and","raises","an","exception","if","they","fail",".","This","`","Op","`","returns","its","``","value","''","argument","if","its","condition","arguments","are","all","``","True","``",";","otherwise",",","it","raises","a","user-specified","exception","."]
docstr: Parameters
  ==========
  value
      The value to return if `conds` all evaluate to ``True``; otherwise,
      `self.exc_type` is raised.
  conds
      The conditions to evaluate.
docstr_tok: ["Parameters","==========","value","The","value","to","return","if","`","conds","`","all","evaluate","to","``","True","``",";","otherwise",",","`","self.exc_type","`","is","raised",".","conds","The","conditions","to","evaluate","."]
code: def make_node(self, value: Variable, *conds: Variable):
      """
  
      Parameters
      ==========
      value
          The value to return if `conds` all evaluate to ``True``; otherwise,
          `self.exc_type` is raised.
      conds
          The conditions to evaluate.
      """
      import pytensor.tensor as pt
  
      if not isinstance(value, Variable):
          value = pt.as_tensor_variable(value)
  
      conds = [
          pt.as_tensor_variable(c) if not isinstance(c, Variable) else c
          for c in conds
      ]
  
      assert all(c.type.ndim == 0 for c in conds)
  
      return Apply(
          self,
          [value] + conds,
          [value.type()],
      )
  
imports: from textwrap import indent
  import numpy
  from pytensor.gradient import DisconnectedType
  from pytensor.graph.basic import Apply, Variable
  from pytensor.graph.replace import _vectorize_node
  from pytensor.link.c.op import COp
  from pytensor.link.c.params_type import ParamsType
  from pytensor.link.c.type import Generic
  from pytensor.scalar.basic import ScalarType
  from pytensor.tensor.type import DenseTensorType
label_desc: Use image node_id 5 for calling the CheckAndRaise obj's underlying member method code with example usage: obj.make_node(value) and returns: Apply