code: def _get_seq_no(self, content_related):
          
          if content_related:
              result = self._sequence * 2 + 1
              self._sequence += 1
              return result
          else:
              return self._sequence * 2
docs: Generates the next sequence number depending on whether
          it should be for a content-related query or not.