def METHOD_NAME(self):
    x = matrix("x")
    s = sigmoid(x)
    mode = self.get_mode("local_ultra_fast_sigmoid")
    f = aesara.function([x], s, mode=mode)
    assert check_stack_trace(f, ops_to_check=sigmoid)
    topo = f.maker.fgraph.toposort()
    assert len(topo) == 1
    assert topo[0].op == sigmoid
    mode = self.get_mode().including("local_ultra_fast_sigmoid")
    f = aesara.function([x], s, mode=mode)
    assert check_stack_trace(f, ops_to_check=ultra_fast_sigmoid)
    topo = f.maker.fgraph.toposort()
    assert topo[0].op == ultra_fast_sigmoid
    assert len(topo) == 1
    s = sigmoid_inplace(x)
    f = aesara.function([x], s, mode=mode, accept_inplace=True)
    assert check_stack_trace(f, ops_to_check=ultra_fast_sigmoid_inplace)
    topo = f.maker.fgraph.toposort()
    assert topo[0].op == ultra_fast_sigmoid_inplace
    assert len(topo) == 1