code: def gap_free_path(sampler, ilo, ihi, transform, loglike, Lmin):
      """
      Check if sampling path at all intermediate points between ilo and ihi
      are above Lmin.
      """
      for i in range(ilo, ihi):
          (
              xi,
              vi,
              Li,
              onpath,
          ) = sampler.contourpath.samplingpath.interpolate(i)
          assert onpath
          if Li is None:
              pi = transform(xi)
              Li = loglike(pi)
              if not Li > Lmin:
                  return False
      return True
  
file_path: ultranest/tests/test_flatnuts.py
imports: import numpy
  from ultranest.mlfriends import AffineLayer, ScalingLayer, MLFriends
  from ultranest.flatnuts import ClockedStepSampler, ClockedBisectSampler, ClockedNUTSSampler
  from ultranest.flatnuts import SingleJumper, DirectJumper
  from ultranest.samplingpath import SamplingPath, ContourSamplingPath
  from numpy.testing import assert_allclose
label_desc: Use image node_id 1 for calling a global function with example usage: gap_free_path(sampler, ilo, ihi, transform, loglike, Lmin) and returns: True, False