code: def get_year_start_end(dt, first_day=None, last_day=None):
      """
      The first and last day of the year for the specified date.
  
      Parameters
      ----------
  
      dt: datetime
      first_day: datetime
      last_day: datetime
  
      Returns
      -------
      datetime, datetime
  
      """
      year_start = (
          first_day
          if first_day
          else pd.to_datetime(date(dt.year, 1, 1), utc=True)
      )
      year_end = (
          last_day
          if last_day
          else pd.to_datetime(date(dt.year, 12, 31), utc=True)
      )
  
      if year_end > pd.Timestamp.utcnow():
          year_end = pd.Timestamp.utcnow().floor("1D")
  
      return year_start, year_end
  
file_path: catalyst/catalyst/exchange/utils/datetime_utils.py
imports: import calendar
  import math
  import re
  from datetime import datetime, timedelta, date
  import pandas
  import pytz
  from catalyst.exchange.exchange_errors import InvalidHistoryFrequencyError, InvalidHistoryFrequencyAlias
label_desc: Use image node_id 9 for calling a global function with example usage: get_year_start_end(dt, first_day, last_day) and returns: year_start,  year_end