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 randint(self, minval, maxval=None, size=1):
      if maxval is None:
          minval, maxval = 0, minval
      out = np.zeros(size, dtype="int64")
      if self.val == 0:
          return out + minval
      else:
          return out + maxval - 1
  
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 3 for calling the MockRandomState obj's underlying member method code with example usage: obj.randint(minval, maxval, size) and returns: unknown, unknown