def METHOD_NAME():
    BO.opt_direction = 'max'
    assert BO.is_better_than(2, 1)
    assert BO.is_better_than(-0.1, -0.2)
    BO.opt_direction = 'min'
    assert BO.is_better_than(1, 2)
    assert BO.is_better_than(-0.2, -0.1)