class_docstr: Encapsulate PyJAGS specific logic.
class_docstr_tok: ["Encapsulate","PyJAGS","specific","logic","."]
docstr: Extract log likelihood samples from fit.
docstr_tok: ["Extract","log","likelihood","samples","from","fit","."]
code: def log_likelihood_to_xarray(
      self,
  ) -> tp.Optional[tp.Tuple[xarray.Dataset, xarray.Dataset]]:
      """Extract log likelihood samples from fit."""
      if self.log_likelihood is None:
          return None
  
      return self._pyjags_samples_to_xarray(self.log_likelihood)
  
imports: import typing
  from collections import OrderedDict
  from collections.abc import Iterable
  import numpy
  import xarray
  from .inference_data import InferenceData
  from ..rcparams import rcParams
  from .base import dict_to_dataset
label_desc: Use image node_id 5 for calling the PyJAGSConverter obj's underlying member method code with example usage: obj.log_likelihood_to_xarray() and returns: self, None