code: def check_starting_point(
      sampler, startx, startL, transform, loglike, Lmin
  ):
      """Verify that if going 0 steps, should return start point."""
      assert sampler.goals == [], sampler.goals
      sampler.set_nsteps(0)
      Llast = None
      sample, is_independent = sampler.next(Llast)
      assert is_independent, (sample, is_independent)
      unew, Lnew = sample
      assert_allclose(startx, unew)
      assert_allclose(startL, Lnew)
  
      assert sampler.goals == [], sampler.goals
      sample, is_independent = sampler.next(Llast)
      assert sample is None and not is_independent, (
          sample,
          is_independent,
      )
  
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 2 for calling a global function with example usage: check_starting_point(sampler, startx, startL, transform, loglike, Lmin) without return types