code: def test_transform_holiday_country():
      """Tests the transformations between country-holiday strings and country-holiday tuples."""
      hi = HolidayInferrer()
      holiday_country_strs = [
          "US_Christmas Day",
          "UK_New Year's Day",
          "France_Thanksgiving",
      ]
      holiday_country_tuples = [
          ("US", "Christmas Day"),
          ("UK", "New Year's Day"),
          ("France", "Thanksgiving"),
      ]
      assert (
          hi._transform_country_holidays(holiday_country_strs)
          == holiday_country_tuples
      )
      assert (
          hi._transform_country_holidays(holiday_country_tuples)
          == holiday_country_strs
      )
  
imports: import numpy
  import pandas
  import pytest
  from holidays_ext.get_holidays import get_holiday_df
  from testfixtures import LogCapture
  from greykite.algo.common.holiday_inferrer import HolidayInferrer
  from greykite.common.constants import EVENT_DF_DATE_COL
  from greykite.common.constants import EVENT_DF_LABEL_COL
  from greykite.common.constants import TIME_COL
  from greykite.common.constants import VALUE_COL
  from greykite.common.data_loader import DataLoader
  from greykite.common.logging import LOGGER_NAME
label_desc: Use image node_id 8 for calling a global function with example usage: test_transform_holiday_country() without return types