import re


def _get_year_month(path_file):
    """
    extract the year and the month from the name of the path.
    Args:
        path_file (str): path of the file.
    Returns:
        [tuple(int, int)]: year, month
    """
    year = int(re.findall(r"-(\d{4,})-", path_file)[0])
    month = int(re.findall(r"-(\d{2,})\.", path_file)[0])
    return year, month