code: def loglike(x):
      a = -0.5 * sum(
          [
              ((xi - 0.7 + i * 0.001) / 0.1) ** 2
              for i, xi in enumerate(x)
          ]
      )
      b = -0.5 * sum(
          [
              ((xi - 0.3 - i * 0.001) / 0.1) ** 2
              for i, xi in enumerate(x)
          ]
      )
      return np.logaddexp(a, b)
  
file_path: ultranest/tests/test_popstepsampling.py
imports: import numpy
  from ultranest import ReactiveNestedSampler
  from ultranest.popstepsampler import PopulationSliceSampler, PopulationRandomWalkSampler
  from ultranest.popstepsampler import generate_cube_oriented_direction, generate_random_direction, generate_cube_oriented_direction_scaled
  from ultranest.popstepsampler import generate_region_oriented_direction, generate_region_random_direction
  from ultranest.mlfriends import AffineLayer, ScalingLayer, MLFriends, RobustEllipsoidRegion, SimpleRegion
label_desc: Use image node_id 2 for calling a global function with example usage: loglike(x) and returns: np