code: def _finalize(self, chain=-1):
          
          chain = range(self.chains)[chain]
          for name in self.trace_names[chain]:
              self._traces[name]._finalize(chain)
          self.commit()
docs: Finalize the chain for all tallyable objects.