code: def make_holidays_df(year_list, country, province=None, state=None):
      """Make dataframe of holidays for given years and countries
  
      Parameters
      ----------
      year_list: a list of years
      country: country name
  
      Returns
      -------
      Dataframe with 'ds' and 'holiday', which can directly feed
      to 'holidays' params in Prophet
      """
      country_holidays = get_country_holidays_class(country)
      holidays = country_holidays(
          expand=False,
          language="en_US",
          subdiv=province,
          years=year_list,
      )
  
      holidays_df = pd.DataFrame(
          [(date, holidays.get_list(date)) for date in holidays],
          columns=["ds", "holiday"],
      )
      holidays_df = holidays_df.explode("holiday")
      holidays_df.reset_index(inplace=True, drop=True)
      holidays_df["ds"] = pd.to_datetime(holidays_df["ds"])
  
      return holidays_df
  
imports: from __future__ import absolute_import, division, print_function
  import numpy
  import pandas
  import holidays
label_desc: Use image node_id 3 for calling a global function with example usage: make_holidays_df(year_list, country, province, state) and returns: holidays_df