code: def _folder_item_duedate(self, analysis_brain, item):
          
  
          # Note that if the analysis is a Reference Analysis, `getDueDate`
          # returns the date when the ReferenceSample expires. If the analysis is
          # a duplicate, `getDueDate` returns the due date of the source analysis
          due_date = analysis_brain.getDueDate
          if not due_date:
              return None
          due_date_str = self.ulocalized_time(due_date, long_format=0)
          item['DueDate'] = due_date_str
  
          # If the Analysis is late/overdue, display an icon
          capture_date = analysis_brain.getResultCaptureDate
          capture_date = capture_date or DateTime()
          if capture_date > due_date:
              # The analysis is late or overdue
              img = get_image('late.png', title=t(_("Late Analysis")),
                              width='16px', height='16px')
              item['replace']['DueDate'] = '{} {}'.format(due_date_str, img)
docs: Set the analysis' due date to the item passed in.
  
          :param analysis_brain: Brain that represents an analysis
          :param item: analysis' dictionary counterpart that represents a row