def decode_binary_space_partition(code: str) -> tuple:
    """Decode binary partition character code and return (row, col) tuple.

    Args:
        code: A 9 character code - The first 7 characters are each either
              "F"ront or "B"ack and the last 3 are either "L"eft or "R"ight.

    Returns:
        tuple consisting of two integers representing row and column.

    """
    row_low = col_low = 0
    row_high = 127
    col_high = 7
    for char in code:
        if char == "F":
            row_high -= (row_high - row_low) // 2 + 1
        elif char == "B":
            row_low += (row_high - row_low) // 2 + 1
        elif char == "L":
            col_high -= (col_high - col_low) // 2 + 1
        elif char == "R":
            col_low += (col_high - col_low) // 2 + 1

    row = row_low if code[6] == "F" else row_high

    col = col_low if code[9] == "L" else col_high

    return (row, col)