def _parse_empty_like_args(context, builder, sig, args):
 arytype = sig.args[0]
 if isinstance(arytype, types.Array):
  ary = make_array(arytype)(context, builder, value=args[0])
  shapes = cgutils.unpack_tuple(builder, ary.shape, count=arytype.ndim)
  return (sig.return_type, shapes)
 else:
  return (sig.return_type, ())

def _parse_empty_like_args ( context , builder , sig , args ) : arytype = sig . args [ 0 ] if isinstance ( arytype , types . Array ) : ary = make_array ( arytype ) ( context , builder , value = args [ 0 ] ) shapes = cgutils . unpack_tuple ( builder , ary . shape , count = arytype . ndim ) return ( sig . return_type , shapes ) else : return ( sig . return_type , ( ) )
parse the arguments of a np .