class_docstr: Related to minibatch training
class_docstr_tok: ["Related","to","minibatch","training"]
code: def test_random(self):
      x = Normal.dist(size=(5,))
      mx = create_minibatch_rv(x, total_size=(10,))
      assert mx is not x
      np.testing.assert_array_equal(
          draw(mx, random_seed=1), draw(x, random_seed=1)
      )
  
file_path: pymc/tests/variational/test_minibatch_rv.py
imports: import numpy
  import pytensor
  import pytest
  from scipy import stats
  import pymc
  from pymc import Normal, draw
  from pymc.data import minibatch_index
  from pymc.testing import select_by_precision
  from pymc.variational.minibatch_rv import create_minibatch_rv
  from tests.test_data import gen1, gen2
label_desc: Use image node_id 7 for calling the TestMinibatchRandomVariable obj's underlying member method code with example usage: obj.test_random() without return types