def _cond(index: TfVal, *operands: TfVal, branches: Sequence[core.ClosedJaxpr], linear: Sequence[bool]) -> Sequence[TfVal]:
    del linear
    branches_tf = [functools.partial(_interpret_jaxpr, jaxpr, *operands) for jaxpr in branches]
    return tf.switch_case(index, branches_tf)
def _cond(index: TfVal, *operands: TfVal, branches: Sequence[core.ClosedJaxpr], linear: Sequence[bool]) -> Sequence[TfVal]:
    del linear
    branches_tf = [functools.partial(_interpret_jaxpr, jaxpr, *operands) for jaxpr in branches]
    return tf.switch_case(index, branches_tf)