code: def test_not_allowed2(self):
      with pytest.raises(ValueError, match="not valid for Minibatch"):
          mb = pm.Minibatch(
              self.data, pt.as_tensor(self.data) * 2, batch_size=20
          )
  
imports: import io
  import itertools
  import re
  import cloudpickle
  import numpy
  import pytensor
  import pytensor.tensor
  import pytest
  from pytensor import shared
  from pytensor.tensor.variable import TensorVariable
  import pymc
  from pymc.data import is_minibatch
  from pymc.pytensorf import GeneratorOp, floatX
label_desc: Use image node_id 4 for calling the TestMinibatch obj's underlying member method code with example usage: obj.test_not_allowed2() without return types