code: def pytensor_config():
      config = pytensor.config.change_flags(on_opt_error="raise")
      with config:
          yield
  
file_path: pymc/tests/conftest.py
imports: import warnings
  import numpy
  import pytensor
  import pytest
label_desc: Use image node_id 1 for calling a global function with example usage: pytensor_config() without return types