code: def test_CheckAndRaise_str():
      exc_msg = "this is the exception"
      check_and_raise = CheckAndRaise(CustomException, exc_msg)
      assert (
          str(check_and_raise)
          == f"CheckAndRaise{{{CustomException}(this is the exception)}}"
      )
  
imports: import numpy
  import pytest
  import scipy.sparse
  import pytensor
  import pytensor.tensor
  from pytensor.compile.mode import OPT_FAST_RUN, Mode
  from pytensor.graph import vectorize_graph
  from pytensor.graph.basic import Constant, equal_computations
  from pytensor.raise_op import Assert, CheckAndRaise, assert_op
  from pytensor.scalar.basic import ScalarType, float64
  from pytensor.sparse import as_sparse_variable
  from pytensor.tensor.basic import second
  from pytensor.tensor.elemwise import DimShuffle
  from tests import unittest_tools
label_desc: Use image node_id 1 for calling a global function with example usage: test_CheckAndRaise_str() without return types