class_docstr: A helpful class to check random values close to the boundaries when
  designing new tests
class_docstr_tok: ["A","helpful","class","to","check","random","values","close","to","the","boundaries","when","designing","new","tests"]
code: def __init__(self, val):
      self.val = val
  
imports: import logging
  import sys
  from copy import copy, deepcopy
  from functools import wraps
  import numpy
  import pytest
  import pytensor
  from pytensor.compile.debugmode import str_diagnostic
  from pytensor.configdefaults import config
  from pytensor.gradient import verify_grad
  from pytensor.tensor.basic import as_tensor_variable
  from pytensor.tensor.math import _allclose
  from pytensor.tensor.math import add
label_desc: Use image node_id 1 to create a new MockRandomState object  with example: obj = MockRandomState(val)