code: def _get_next_date_from_partial_date(partial_date):
      
      relativedelta_arg = 'years'
  
      if partial_date.month:
          relativedelta_arg = 'months'
      if partial_date.day:
          relativedelta_arg = 'days'
  
      next_date = parse(partial_date.dumps()) + relativedelta(**{relativedelta_arg: 1})
      return PartialDate.from_parts(
          next_date.year,
          next_date.month if partial_date.month else None,
          next_date.day if partial_date.day else None
      )
docs: Calculates the next date from the given partial date.
  
      Args:
          partial_date (inspire_utils.date.PartialDate): The partial date whose next date should be calculated.
  
      Returns:
          PartialDate: The next date from the given partial date.