code: def reshape_as_raster(arr):
      """Returns the array in a raster order
      by swapping the axes order from (rows, columns, bands)
      to (bands, rows, columns)
  
      Parameters
      ----------
      arr : array-like in the image form of (rows, columns, bands)
          image to reshape
      """
      # swap the axes order from (rows, columns, bands) to (bands, rows, columns)
      im = np.transpose(arr, [2, 0, 1])
      return im
  
file_path: rasterio/rasterio/plot.py
imports: import builtins
  from collections import OrderedDict
  import logging
  import numpy
  import rasterio
  from rasterio.io import DatasetReader
  from rasterio.transform import guard_transform
label_desc: Use image node_id 5 for calling a global function with example usage: reshape_as_raster(arr) and returns: im