code: def _ensure_extra_rows(self, term, N):
          
          attrs = self.graph.node[term]
          attrs['extra_rows'] = max(N, attrs.get('extra_rows', 0))
docs: Ensure that we're going to compute at least N extra rows of `term`.