code: def reshape_as_image(arr):
      """Returns the source array reshaped into the order
      expected by image processing and visualization software
      (matplotlib, scikit-image, etc)
      by swapping the axes order from (bands, rows, columns)
      to (rows, columns, bands)
  
      Parameters
      ----------
      arr : array-like of shape (bands, rows, columns)
          image to reshape
      """
      # swap the axes order from (bands, rows, columns) to (rows, columns, bands)
      im = np.ma.transpose(arr, [1, 2, 0])
      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 4 for calling a global function with example usage: reshape_as_image(arr) and returns: im