code: def from_pyro(posterior=None, *, coords=None, dims=None):
      
      return PyroConverter(posterior=posterior, coords=coords, dims=dims).to_inference_data()
docs: Convert pyro data into an InferenceData object.
  
      Parameters
      ----------
      posterior : pyro.MCMC
          Fitted MCMC object from Pyro
      coords : dict[str] -> list[str]
          Map of dimensions to coordinates
      dims : dict[str] -> list[str]
          Map variable names to their coordinates