code: def test_pkl(self):
      # Test pickling of RandomFunction.
      # binomial was created by calling RandomFunction on a string,
      # random_integers by calling it on a function.
      rng_r = random_state_type()
      mode = None
      if theano.config.mode in ["DEBUG_MODE", "DebugMode"]:
          mode = "FAST_COMPILE"
      post_bin_r, bin_sample = binomial(rng_r, (3, 5), 1, 0.3)
      f = theano.function([rng_r], [post_bin_r, bin_sample], mode=mode)
      pkl_f = pickle.dumps(f)
  
      post_int_r, int_sample = random_integers(rng_r, (3, 5), -1, 8)
      g = theano.function([rng_r], [post_int_r, int_sample], mode=mode)
      pkl_g = pickle.dumps(g)
      pickle.loads(pkl_g)
  
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 37 for calling the T_random_function obj's underlying member method code with example usage: obj.test_pkl() without return types