def IsInverse(a, b) -> bool:
    """Checks if two provided directions are the opposites of each other.
    """
    if (a == 2 and b == 3) or (a == 3 and b == 2):
        return True
    if (a == 0 and b == 1) or (a == 1 and b == 0):
        return True

    return False