code: def test_specify_shape():
      for dtype in ["float16", "float32"]:
          a = rand_gpuarray(20, dtype=dtype)
          g = GpuArrayType(dtype=dtype, broadcastable=(False,))("g")
          f = theano.function([g], theano.tensor.specify_shape(g, [20]))
          f(a)
  
imports: from __future__ import absolute_import, print_function, division
  import os
  import nose
  import numpy
  import theano
  from theano.compat import PY3
  from theano import config
  from theano.compile import DeepCopyOp, Rebroadcast, ViewOp
  from theano.misc.pkl_utils import CompatUnpickler
  from .config import test_ctx_name
  from .test_basic_ops import rand_gpuarray
  from ..type import GpuArrayType, gpuarray_shared_constructor
  import pygpu
label_desc: Use image node_id 5 for calling a global function with example usage: test_specify_shape() without return types