from typing import List
from typing import Tuple


def extract_node_waypt(way_field: List[Tuple[str, str]]) -> int:
    """
    Given a list with a reference node such as [('ref', '0')], extract out the lane ID.

    Args:
       way_field: key and node id pair to extract

    Returns:
       node_id: unique ID for a node waypoint
    """
    key = way_field[0][0]
    node_id = way_field[0][1]
    assert key == "ref"
    return int(node_id)