class_docstr: Test that a keyword-based log-probability function instead of
  a positional.
class_docstr_tok: ["Test","that","a","keyword-based","log-probability","function","instead","of","a","positional","."]
code: def lnpdf(self, pars) -> np.float64:
      mean = pars["mean"]
      var = pars["var"]
      if var <= 0:
          return -np.inf
      return (
          -0.5
          * ((mean - self.x) ** 2 / var + np.log(2 * np.pi * var)).sum()
      )
  
file_path: emcee/src/emcee/tests/unit/test_ensemble.py
imports: import string
  from unittest import TestCase
  import numpy
  import pytest
  from emcee.ensemble import EnsembleSampler, ndarray_to_list_of_dicts
label_desc: Use image node_id 1 for calling the TestNamedParameters obj's underlying member method code with example usage: obj.lnpdf(pars) and returns: unknown, unknown