code: def test_bad_init_parallel(self):
      with pm.Model():
          pm.HalfNormal("a", sigma=1, initval=-1, transform=None)
          with pytest.raises(SamplingError) as error:
              pm.sample(cores=2, random_seed=1)
          error.match("Initial evaluation")
  
imports: import logging
  import sys
  import warnings
  import numpy
  import pytensor.tensor
  import pytest
  import pymc
  from pymc.exceptions import SamplingError
  from pymc.pytensorf import floatX
  from pymc.step_methods.hmc import NUTS
  from tests import sampler_fixtures
  from tests.helpers import RVsAssignmentStepsTester, StepMethodTester
label_desc: Use image node_id 3 for calling the TestNutsCheckTrace obj's underlying member method code with example usage: obj.test_bad_init_parallel() without return types