code: def test_f16_nonzero():
      try:
          # To have theano.shared(x) try to move on the GPU
          theano.compile.shared_constructor(gpuarray_shared_constructor)
          cpu_f16_nonzero(mode=mode, op_to_check=GPUA_mrg_uniform)
      finally:
          theano.compile.shared_constructor(
              gpuarray_shared_constructor, remove=True
          )
  
file_path: Theano/theano/gpuarray/tests/test_rng_mrg.py
imports: from __future__ import absolute_import, print_function, division
  import functools
  import numpy
  import theano
  from theano import change_flags, tensor
  from theano.sandbox import rng_mrg
  from theano.sandbox.rng_mrg import MRG_RandomStreams
  from theano.sandbox.tests.test_rng_mrg import java_samples, rng_mrg_overflow
  from theano.sandbox.tests.test_rng_mrg import test_f16_nonzero
  from theano.tests import unittest_tools
  from .config import mode_with_gpu
  from ..type import gpuarray_shared_constructor
  from ..rng_mrg import GPUA_mrg_uniform
label_desc: Use image node_id 6 for calling a global function with example usage: test_f16_nonzero() without return types