code: def test_target_parameter():
      srng = MRG_RandomStreams()
      pvals = np.array([[0.98, 0.01, 0.01], [0.01, 0.49, 0.50]])
  
      def basic_target_parameter_test(x):
          f = theano.function([], x)
          assert isinstance(f(), np.ndarray)
  
      basic_target_parameter_test(srng.uniform((3, 2), target="cpu"))
      basic_target_parameter_test(srng.normal((3, 2), target="cpu"))
      basic_target_parameter_test(
          srng.truncated_normal((3, 2), target="cpu")
      )
      basic_target_parameter_test(srng.binomial((3, 2), target="cpu"))
      basic_target_parameter_test(
          srng.multinomial(pvals=pvals.astype("float32"), target="cpu")
      )
      basic_target_parameter_test(
          srng.choice(
              p=pvals.astype("float32"), replace=False, target="cpu"
          )
      )
      basic_target_parameter_test(
          srng.multinomial_wo_replacement(
              pvals=pvals.astype("float32"), target="cpu"
          )
      )
  
imports: from __future__ import absolute_import, print_function, division
  import os
  import sys
  import time
  import unittest
  from nose.tools import assert_raises
  import numpy
  from six.moves import xrange
  import theano
  from theano import change_flags, config, tensor
  from theano.sandbox import rng_mrg
  from theano.sandbox.rng_mrg import MRG_RandomStreams
  from theano.tests import unittest_tools
  from theano.tests.unittest_tools import attr
label_desc: Use image node_id 26 for calling a global function with example usage: test_target_parameter() without return types