code: def _interpolate(x, x_sample, y_sample):
      i = _find_enclosing_index(x, x_sample)
      offset = y_sample[i]
      x_diff = x_sample[i + 1] - x_sample[i]
      y_diff = y_sample[i + 1] - y_sample[i]
      slope = y_diff / x_diff
      dist = x - x_sample[i]
      return offset + slope * dist
  
imports: from collections import namedtuple
  import dask.array
  import numba
  import numpy
  from satpy.utils import get_legacy_chunk_size
label_desc: Use image node_id 33 for calling a global function with example usage: _interpolate(x, x_sample, y_sample) and returns: unknown