def METHOD_NAME(
    self,
    adata: Optional[AnnData] = None,
    indices: Optional[Sequence[int]] = None,
    batch_size: Optional[int] = None,
) -> float:
    r"""Return the reconstruction error for the data.
    This is typically written as :math:`p(x \mid z)`, the likelihood term given one posterior sample.
    Note, this is not the negative likelihood, higher is better.
    Parameters
    ----------
    adata
        AnnData object with equivalent structure to initial AnnData. If `None`, defaults to the
        AnnData object used to initialize the model.
    indices
        Indices of cells in adata to use. If `None`, all cells are used.
    batch_size
        Minibatch size for data loading into model. Defaults to `scvi.settings.batch_size`.
    """
    adata = self._validate_anndata(adata)
    scdl = self._make_data_loader(
        adata=adata, indices=indices, batch_size=batch_size
    )
    reconstruction_error = compute_reconstruction_error(self.module, scdl)
    return reconstruction_error