code: def meshgrid(*x):
      if len(x) == 1:
          # necessary for one-dimensional case to work correctly. x is a
          # tuple due to the * operator.
          return x
      else:
          args = numpy.atleast_1d(*x)
          s0 = (1,) * len(args)
          return list(
              map(
                  numpy.squeeze,
                  numpy.broadcast_arrays(
                      *[
                          x.reshape(s0[:i] + (-1,) + s0[i + 1 : :])
                          for i, x in enumerate(args)
                      ]
                  ),
              )
          )
  
imports: from __future__ import division
  import itertools
  import random
  import unittest
  import numpy
  import pyfftw
  from pyfftw import _supported_types
  from .test_pyfftw_base import run_test_suites
label_desc: Use image node_id 1 for calling a global function with example usage: meshgrid() and returns: x, list