class_docstr: Binary Heap Class
class_docstr_tok: ["Binary","Heap","Class"]
code: def perc_up(self, i):
      while i // 2 > 0:
          if self.heap[i] < self.heap[i // 2]:
              # Swap value of child with value of its parent
              self.heap[i], self.heap[i // 2] = (
                  self.heap[i // 2],
                  self.heap[i],
              )
          i = i // 2
  
file_path: keon-algos/algorithms/heap/binary_heap.py
imports: from abc import ABCMeta, abstractmethod
label_desc: Use image node_id 2 for calling the BinaryHeap obj's underlying member method code with example usage: obj.perc_up(i) without return types