docs: def weighted_sample_model_from_weighted_samples(self, index):
          """From a weighted sample return the model, weight and likelihood hood.
  
          NOTE: GetDist reads the log likelihood from the weighted_sample.txt file (column 2), which are defined as \
          -2.0*likelihood. This routine converts these back to likelihood.
  
          Parameters
          -----------
          index : int
              The index of the weighted sample to return.
          """
          return list(self.pdf.samples[index]), self.pdf.weights[index], -0.5 * self.pdf.loglikes[index]