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 test_named_parameters(self):
      sampler = EnsembleSampler(
          nwalkers=10,
          ndim=len(self.names),
          log_prob_fn=self.lnpdf,
          parameter_names=self.names,
      )
      assert sampler.params_are_named
      assert list(sampler.parameter_names.keys()) == self.names
  
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 5 for calling the TestNamedParameters obj's underlying member method code with example usage: obj.test_named_parameters() without return types