code: def getPeak(self, arr):
      start, end = 0, arr.length() - 1
      while start < end:
          mid = (start + end) // 2
          if mid != 0:
              if arr.get(mid) > arr.get(mid - 1):
                  start = mid + 1
              else:
                  end = mid - 1
          else:
              if arr.get(mid) < arr.get(mid + 1):
                  start = mid + 1
              else:
                  end = mid - 1
      return end
  
label_desc: Use image node_id 2 for calling the Solution obj's underlying member method code with example usage: obj.getPeak(arr) and returns: end