code: def test_alloc_empty():
      for dt in ["float32", "int8"]:
          f = theano.function(
              [], GpuAllocEmpty(dt, context_name=test_ctx_name)(2, 3)
          )
          assert len(f.maker.fgraph.apply_nodes) == 1
          out = f()
          assert out.shape == (2, 3)
          assert out.dtype == dt
  
      f = theano.function(
          [],
          [
              GpuAllocEmpty("uint64", test_ctx_name)(3, 2),
              GpuAllocEmpty("uint64", test_ctx_name)(3, 2),
          ],
      )
      out = f()
      assert out[0].shape == (3, 2)
      assert out[0].dtype == "uint64"
      assert out[1].shape == (3, 2)
      assert out[1].dtype == "uint64"
      assert (
          len(
              [
                  node
                  for node in f.maker.fgraph.apply_nodes
                  if isinstance(node.op, GpuAllocEmpty)
              ]
          )
          == 1
      )
  
imports: from __future__ import absolute_import, print_function, division
  import unittest
  from theano.compat import izip
  from six import iteritems
  import numpy
  import theano
  import theano.tensor
  from theano.tensor import TensorType
  from theano.tensor.basic import alloc
  from theano.tensor.tests import test_basic
  from theano.tensor.tests.test_basic import rand, safe_make_node
  from theano.tests import unittest_tools
  from ..type import GpuArrayType, get_context, gpuarray_shared_constructor
  from ..basic_ops import host_from_gpu, HostFromGpu, GpuFromHost, GpuReshape, GpuToGpu, GpuAlloc, GpuAllocEmpty, GpuContiguous, gpu_join, GpuJoin, GpuSplit, GpuEye, GpuTri, gpu_contiguous
  from ..elemwise import GpuDimShuffle, GpuElemwise
  from ..subtensor import GpuSubtensor
  from .config import mode_with_gpu, mode_without_gpu, test_ctx_name
  from pygpu import gpuarray
label_desc: Use image node_id 9 for calling a global function with example usage: test_alloc_empty() without return types