code: def select_treasury_duration(start_date, end_date):
      td = end_date - start_date
      if td.days <= 31:
          treasury_duration = "1month"
      elif td.days <= 93:
          treasury_duration = "3month"
      elif td.days <= 186:
          treasury_duration = "6month"
      elif td.days <= 366:
          treasury_duration = "1year"
      elif td.days <= 365 * 2 + 1:
          treasury_duration = "2year"
      elif td.days <= 365 * 3 + 1:
          treasury_duration = "3year"
      elif td.days <= 365 * 5 + 2:
          treasury_duration = "5year"
      elif td.days <= 365 * 7 + 2:
          treasury_duration = "7year"
      elif td.days <= 365 * 10 + 2:
          treasury_duration = "10year"
      else:
          treasury_duration = "30year"
  
      return treasury_duration
  
imports: import logbook
  import numpy
  from catalyst.constants import LOG_LEVEL
label_desc: Use image node_id 3 for calling a global function with example usage: select_treasury_duration(start_date, end_date) and returns: treasury_duration