code: def test_bernoulli_sampling_invalid_argument(posterior):
      with pytest.raises(
          ValueError,
          match="<class 'float'> object cannot be interpreted as an integer",
      ):
          posterior.sample(num_thin=2.5)
  
file_path: pystan/tests/test_basic_bernoulli.py
imports: import numpy
  import pytest
  import stan
label_desc: Use image node_id 5 for calling a global function with example usage: test_bernoulli_sampling_invalid_argument(posterior) without return types