code: def days_left_in_year(gyear, gmonth, gday):
      r"""Calculate the number of days remaining in the calendar year.
  
      Parameters
      ----------
      gyear : int
          Gregorian year.
      gmonth : int
          Gregorian month.
      gday : int
          Gregorian day.
  
      Returns
      -------
      days_left : int
          Calendar days remaining in RDate format.
      """
      days_left = subtract_dates(gyear, gmonth, gday, gyear, 12, 31)
      return days_left
  
imports: import calendar
  import logging
  import math
  import pandas
label_desc: Use image node_id 6 for calling a global function with example usage: days_left_in_year(gyear, gmonth, gday) and returns: days_left