code: def test_data_unmodified(posterior):
      # pull in posterior to cache compilation
      data_with_array = copy.deepcopy(data)
      # `build` will convert data into a list, should not change original
      data_with_array["y"] = np.array(data_with_array["y"], dtype=int)
      assert data_with_array["y"].dtype == int
      stan.build(program_code, data=data_with_array)
      # `data_with_array` should be unchanged
      assert not isinstance(data_with_array["y"], list)
      assert data_with_array["y"].dtype == int
  
imports: import copy
  import numpy
  import pytest
  import stan
label_desc: Use image node_id 2 for calling a global function with example usage: test_data_unmodified(posterior) without return types