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_run_mcmc(self):
      # Sort of an integration test
      n_walkers = 4
      sampler = EnsembleSampler(
          nwalkers=n_walkers,
          ndim=len(self.names),
          log_prob_fn=self.lnpdf,
          parameter_names=self.names,
      )
      guess = np.random.rand(n_walkers, len(self.names))
      n_steps = 50
      results = sampler.run_mcmc(guess, n_steps)
      assert results.coords.shape == (n_walkers, len(self.names))
      chain = sampler.chain
      assert chain.shape == (n_walkers, n_steps, len(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 10 for calling the TestNamedParameters obj's underlying member method code with example usage: obj.test_run_mcmc() without return types