code: def convert_date_to_continuous_time(dt):
      """Converts date to continuous time. Each year is one unit.
  
      Parameters
      ----------
      dt : datetime object
          the date to convert
  
      Returns
      -------
      conti_date : `float`
          the date represented in years
      """
      year_length = datetime(dt.year, 12, 31).timetuple().tm_yday
      tt = dt.timetuple()
  
      return dt.year + (
          tt.tm_yday
          - 1
          + dt.hour / 24
          + dt.minute / (24 * 60)
          + dt.second / (24 * 3600)
      ) / float(year_length)
  
imports: import math
  from datetime import datetime
  from datetime import timedelta
  import numpy
  import pandas
  import pytz
  from holidays_ext import get_holidays
  from pandas.tseries.frequencies import to_offset
  from scipy.special import expit
  from greykite.common import constants
  from greykite.common.python_utils import split_offset_str
label_desc: Use image node_id 1 for calling a global function with example usage: convert_date_to_continuous_time(dt) and returns: unknown