code: def write_sampler_metadata(self, sampler):
          
          super(EmceePTFile, self).write_sampler_metadata(sampler)
          self[self.sampler_group].attrs["betas"] = sampler.betas
docs: Adds writing betas to MultiTemperedMCMCIO.