code: def _randomizedPartition(array, begin, end):
      i = random.randint(begin, end)
      array[begin], array[i] = array[i], array[begin]
      return _partition(array, begin, end)
  
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 23 for calling a global function with example usage: _randomizedPartition(array, begin, end) and returns: _partition