code: def _scale_axis(arr, args=None):
      if args:
          amin, amax = args
      else:
          amin, amax = arr.min(), arr.max()
      scaled_arr = arr - amin
      scaled_arr /= amax - amin
      return scaled_arr, amin, amax
  
file_path: arviz/arviz/plots/backends/bokeh/kdeplot.py
imports: from collections.abc import Callable
  from numbers import Integral
  import numpy
  from bokeh.models import ColumnDataSource
  from bokeh.models.glyphs import Scatter
  from matplotlib.cm import get_cmap
  from matplotlib.colors import rgb2hex
  from matplotlib.pyplot import rcParams
  from ...plot_utils import _scale_fig_size, _init_kwargs_dict
  from ..None import show_layout
  from .None import backend_kwarg_defaults, create_axes_grid
label_desc: Use image node_id 2 for calling a global function with example usage: _scale_axis(arr, args) and returns: scaled_arr,  amin,  amax