code: def empty_noncontiguous(shape):
      """Create a non-contiguous empty array with shape `shape`."""
      offsets = lambda s: [rand.randint(0, 3) for _ in s]
      strides = lambda s: [rand.randint(1, 3) for _ in s]
      parent_left_offsets = offsets(shape)
      parent_right_offsets = offsets(shape)
      parent_strides = strides(shape)
  
      parent_shape = list()
      child_slice = list()
      for index, length in enumerate(shape):
          left_offset = parent_left_offsets[index]
          right_offset = parent_right_offsets[index]
          stride = parent_strides[index]
          parent_shape.append(
              left_offset + stride * length + right_offset
          )
          if right_offset == 0:
              child_slice.append(slice(left_offset, None, stride))
          else:
              child_slice.append(
                  slice(left_offset, -1 * right_offset, stride)
              )
  
      child = numpy.empty(parent_shape)[tuple(child_slice)]
      if list(child.shape) != list(shape):
          raise ValueError(
              "The shape of the noncontiguous array is incorrect."
              " This is a bug."
          )
      return child
  
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 3 for calling a global function with example usage: empty_noncontiguous(shape) and returns: child