class_docstr: Related to minibatch training
class_docstr_tok: ["Related","to","minibatch","training"]
code: def test_mixed1(self):
      with pm.Model():
          data = np.random.rand(10, 20)
          mb = pm.Minibatch(data, batch_size=5)
          v = pm.Normal("n", observed=mb, total_size=10)
          assert (
              pm.logp(v, 1) is not None
          ), "Check index is allowed in graph"
  
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 6 for calling the TestMinibatchRandomVariable obj's underlying member method code with example usage: obj.test_mixed1() without return types