def METHOD_NAME(feature: MapboxFeature) -> Optional[str]:
    """
    Returns the two-letter state code for the given Mapbox Feature, if
    one exists.
    """
    for context in feature.context:
        state = get_state_from_short_code(context.short_code)
        if state:
            return state
    return None