code: def test_unpickle_legacy_op():
      testfile_dir = os.path.dirname(os.path.realpath(__file__))
      fname = "test_gpuarray_multinomial_wo_replacement.pkl"
  
      if not PY3:
          with open(os.path.join(testfile_dir, fname), "r") as fp:
              u = CompatUnpickler(fp)
              m = u.load()
              assert isinstance(m, GPUAChoiceFromUniform)
  
imports: from __future__ import absolute_import, print_function, division
  import os
  import numpy
  import unittest
  import theano
  from theano import config, function, tensor
  from theano.compat import PY3
  from theano.misc.pkl_utils import CompatUnpickler
  from theano.sandbox import multinomial
  from theano.sandbox.rng_mrg import MRG_RandomStreams
  import theano.tests.unittest_tools
  from .config import mode_with_gpu
  from ..multinomial import GPUAMultinomialFromUniform, GPUAChoiceFromUniform
label_desc: Use image node_id 7 for calling a global function with example usage: test_unpickle_legacy_op() without return types