code: def test_default_shape(self):
      rng_R = random_state_type()
      post_r, out = uniform(rng_R)
      f = compile.function([rng_R], [post_r, out], accept_inplace=True)
  
      rng_state0 = np.random.RandomState(utt.fetch_seed())
      numpy_rng = np.random.RandomState(utt.fetch_seed())
      post0, val0 = f(rng_state0)
      post1, val1 = f(post0)
      numpy_val0 = np.asarray(
          numpy_rng.uniform(), dtype=theano.config.floatX
      )
      numpy_val1 = np.asarray(
          numpy_rng.uniform(), dtype=theano.config.floatX
      )
  
      assert np.all(val0 == numpy_val0)
      assert np.all(val1 == numpy_val1)
  
      post_r, out = multinomial(rng_R)
      g = compile.function([rng_R], [post_r, out], accept_inplace=True)
      post2, val2 = g(post1)
      numpy_val2 = np.asarray(
          numpy_rng.multinomial(n=1, pvals=[0.5, 0.5]),
          dtype=theano.config.floatX,
      )
  
      assert np.all(val2 == numpy_val2)
  
imports: from __future__ import absolute_import, print_function, division
  import numpy
  import pickle
  from theano.tests import unittest_tools
  from theano.tensor.raw_random import *
  from theano.tensor import raw_random, ivector, dvector, iscalar, dcol, dtensor3
  from theano import tensor
  from theano import compile, config, gof
label_desc: Use image node_id 23 for calling the T_random_function obj's underlying member method code with example usage: obj.test_default_shape() without return types