def METHOD_NAME(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 at
    if not isinstance(value, Variable):
        value = at.as_tensor_variable(value)
    conds = [
        at.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()],
    )