code: def find_k_closes(arr, pt, k):
      n = len(arr)
      if k > n:
          return arr
      if k < 1:
          return []
  
      k -= 1
      left = 0
      right = n - 1
  
      while True:
          pivot = pivoting(
              arr, left, right, pt
          )  # the same method from the previous solution
  
          if pivot > k:
              right = pivot - 1
          elif pivot < k:
              left = pivot + 1
          else:
              return arr[: k + 1]
  
      # not possible
      return None
  
label_desc: Use image node_id 6 for calling a global function with example usage: find_k_closes(arr, pt, k) and returns: None, arr, list, arr