code: def _drop_tip_during_transfer(self, tips, i, total, **kwargs):
          
          trash = kwargs.get('trash', True)
          if tips > 1 or (i + 1 == total and tips > 0):
              if trash and self.trash_container:
                  self.drop_tip()
              else:
                  self.return_tip()
              tips -= 1
          return tips
docs: Performs a :any:`drop_tip` or :any:`return_tip` when
          running a :any:`transfer`, :any:`distribute`, or :any:`consolidate`.