code: def _get_extended_shape(beta, x):
      return (1,) + beta.shape + (1,) * (x.ndim - beta.ndim - 1)
  
imports: import numpy
  import chainer
  from chainer.backends import cuda
  from chainer import function_node
  from chainer import utils
  from chainer.utils import type_check
label_desc: Use image node_id 1 for calling a global function with example usage: _get_extended_shape(beta, x) and returns: unknown