code: def test_random_function_noshape_noargs(self):
      # Test if random_function helper works without args or shape
      rng_R = random_state_type()
  
      # No shape, no args -> TypeError
      self.assertRaises(TypeError, poisson, rng_R, size=None, ndim=2)
  
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 9 for calling the T_random_function obj's underlying member method code with example usage: obj.test_random_function_noshape_noargs() without return types