code: def test_pixelshuffle1d():
      nchan = 2
      up_x = 2
      nx = 3
      shape_before = (1, nchan * up_x, nx)
      shape_after = (1, nchan, nx * up_x)
      layer = nn.PixelShuffle1D(up_x)
      x = mx.np.reshape(
          mx.np.arange(_np.prod(shape_before)), shape_before
      )
      y = layer(x)
      assert y.shape == shape_after
      assert_allclose(y, [[[0, 3, 1, 4, 2, 5], [6, 9, 7, 10, 8, 11]]])
  
imports: from __future__ import absolute_import
  from __future__ import division
  import os
  from uuid import uuid4
  import numpy
  import mxnet
  from mxnet import gluon, autograd, np, npx
  from mxnet.test_utils import use_np, assert_almost_equal, check_gluon_hybridize_consistency, assert_allclose
  from mxnet.gluon import nn
  from mxnet.base import MXNetError
  import random
  import pytest
label_desc: Use image node_id 23 for calling a global function with example usage: test_pixelshuffle1d() without return types