code: def partition(collection):
      # Use the last element as the pivot
      pivot = collection.pop()
      greater, lesser = [], []
      for element in collection:
          if element > pivot:
              greater.append(element)
          else:
              lesser.append(element)
      return lesser, pivot, greater
  
imports: import ray
  import time
  from numpy import random
label_desc: Use image node_id 1 for calling a global function with example usage: partition(collection) and returns: lesser,  pivot,  greater