import re


def extract_season_from_file_path(file_path):
    """Extract season from file path."""
    match = re.search(r"/(\d{4})_\w+.csv",file_path)
    if match == None:
        raise Exception("extract_season_from_file_path: No match found")
    return match.group(1)