code: def makejump(stepper, sampler, transform, loglike, Lmin):
      stepper.prepare_jump()
      Llast = None
      while not sampler.is_done():
          u, is_independent = sampler.next(Llast=Llast)
          if not is_independent:
              # should evaluate
              p = transform(u)
              L = loglike(p)
              if L > Lmin:
                  Llast = L
              else:
                  Llast = None
      return stepper.make_jump()
  
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 4 for calling a global function with example usage: makejump(stepper, sampler, transform, loglike, Lmin) and returns: stepper