code: def _find_enclosing_index(x, x_sample):
      """Find where x_sample encloses x."""
      for i in range(len(x_sample) - 1):
          if x_sample[i] <= x < x_sample[i + 1]:
              return i
      raise Exception("x not enclosed by x_sample")
  
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 34 for calling a global function with example usage: _find_enclosing_index(x, x_sample) and returns: i