code: def reset(self):
          
          with util.disable_constant(self):
              for k, p in self.params().items():
                  if k != 'name':
                      setattr(self, k, p.default)
docs: Resets stream parameters to their defaults.