code: def interp_array(arr, interp_val=10):
      x = np.arange(0, len(arr), 1)
      xx = np.arange(0, len(arr) - 1, 1 / interp_val)
      q = pchip(x, arr)
      return q(xx)
  
imports: import functools
  import sys
  import numpy
  import copy
  from scipy.interpolate import PchipInterpolator
  import seaborn
  import itertools
  import pandas
  from matplotlib.lines import Line2D
label_desc: Use image node_id 6 for calling a global function with example usage: interp_array(arr, interp_val) and returns: q