code: def find_intercepts(
      extreme_points, best_point, current_worst, front_worst
  ):
      """Find intercepts between the hyperplane and each axis with
      the ideal point as origin."""
      # Construct hyperplane sum(f_i^n) = 1
      b = numpy.ones(extreme_points.shape[1])
      A = extreme_points - best_point
      try:
          x = numpy.linalg.solve(A, b)
      except numpy.linalg.LinAlgError:
          intercepts = current_worst
      else:
          if numpy.count_nonzero(x) != len(x):
              intercepts = front_worst
          else:
              intercepts = 1 / x
  
              if (
                  not numpy.allclose(numpy.dot(A, x), b)
                  or numpy.any(intercepts <= 1e-6)
                  or numpy.any(
                      (intercepts + best_point) > current_worst
                  )
              ):
                  intercepts = front_worst
  
      return intercepts
  
imports: import bisect
  from collections import defaultdict, namedtuple
  from itertools import chain
  import math
  from operator import attrgetter, itemgetter
  import random
  import numpy
label_desc: Use image node_id 17 for calling a global function with example usage: find_intercepts(extreme_points, best_point, current_worst, front_worst) and returns: intercepts