code: def _as_noncontiguous_array(array):
      # TODO(niboshi): cupy + cudnn test fails in F.fixed_batch_normalization.
      # Fix it and use testing.array._as_noncontiguous_array.
      def as_noncontiguous_array(arr):
          if arr is None:
              return None
          if isinstance(arr, (numpy.ndarray, cuda.ndarray)):
              xp = chainer.backend.get_array_module(arr)
              return xp.asfortranarray(arr)
          return testing.array._as_noncontiguous_array(arr)
  
      if isinstance(array, (list, tuple)):
          return type(array)(
              [as_noncontiguous_array(arr) for arr in array]
          )
      return as_noncontiguous_array(array)
  
imports: import unittest
  import warnings
  import numpy
  import six
  import chainer
  from chainer.backends import cuda
  from chainer import functions
  from chainer import gradient_check
  from chainer import testing
  from chainer.testing import attr
  from chainer.testing import backend
label_desc: Use image node_id 1 for calling a global function with example usage: _as_noncontiguous_array(array) and returns: as_noncontiguous_array, testing, type, None, xp