class_docstr: Tests for pm.Bound distribution
class_docstr_tok: ["Tests","for","pm.Bound","distribution"]
code: def create_invalid_distribution(self):
      class MyNormal(RandomVariable):
          name = "my_normal"
          ndim_supp = 0
          ndims_params = [0, 0]
          dtype = "floatX"
  
      my_normal = MyNormal()
  
      class InvalidDistribution(pm.Distribution):
          rv_op = my_normal
  
          @classmethod
          def dist(cls, mu=0, sigma=1, **kwargs):
              return super().dist([mu, sigma], **kwargs)
  
      return InvalidDistribution
  
file_path: pymc/tests/distributions/test_bound.py
imports: import warnings
  import numpy
  import pytest
  import scipy.stats
  from pytensor.tensor.random.op import RandomVariable
  import pymc
label_desc: Use image node_id 3 for calling the TestBound obj's underlying member method code with example usage: obj.create_invalid_distribution() and returns: InvalidDistribution, super