code: def register(cls):
      try:
          name = cls.name
      except AttributeError:
          name = cls.__name__
      holiday_calendars[name] = cls
  
imports: from datetime import datetime, timedelta
  import warnings
  from dateutil.relativedelta import FR, MO, SA, SU, TH, TU, WE
  import numpy
  from pandas.compat import add_metaclass
  from pandas.errors import PerformanceWarning
  from pandas import DateOffset, Series, Timestamp, date_range
  from pandas.tseries.offsets import Day, Easter
label_desc: Use image node_id 11 for calling a global function with example usage: register(cls) without return types