def calc_is_ok(branch):
    assert branch is not None
    if branch.is_null() or branch.is_new() or branch.is_abandoned():
        return None

    return not branch.is_status_bad()
Return True if the supplied 'branch' is ok, False if bad, else None.
dataset/ETHPy150Open bloomberg/phabricator-tools/py/abd/abdt_branch.py/calc_is_ok