code: def test_longdouble_doesnt_crash_bug_312():
      def log_prob(x, ivar):
          return -0.5 * np.sum(ivar * x**2)
  
      np.random.seed(0)
      ndim, nwalkers = 5, 20
      ivar = 1.0 / np.random.rand(ndim).astype(np.longdouble)
      p0 = np.random.randn(nwalkers, ndim).astype(np.longdouble)
  
      sampler = emcee.EnsembleSampler(
          nwalkers, ndim, log_prob, args=[ivar]
      )
      sampler.run_mcmc(p0, 100)
  
imports: import numpy
  import pytest
  import emcee
  from emcee.backends.hdf import TempHDFBackend, does_hdf5_support_longdouble
label_desc: Use image node_id 1 for calling a global function with example usage: test_longdouble_doesnt_crash_bug_312() and returns: unknown