code: def inverse(x):
      return np.interp(x, xnew, xold)
  
file_path: matplotlib/galleries/examples/subplots_axes_and_figures/secondary_axis.py
imports: import datetime
  import matplotlib.pyplot
  import numpy
  import matplotlib.dates
  from matplotlib.ticker import AutoMinorLocator
label_desc: Use image node_id 5 for calling a global function with example usage: inverse(x) and returns: np