code: def search_rotate_recur(array, low, high, val):
      """
      Finds the index of the given value in an array that has been sorted in
      ascending order and then rotated at some unknown pivot.
      """
      if low >= high:
          return -1
      mid = (low + high) // 2
      if val == array[mid]:  # found element
          return mid
      if array[low] <= array[mid]:
          if array[low] <= val <= array[mid]:
              return search_rotate_recur(
                  array, low, mid - 1, val
              )  # Search left
          return search_rotate_recur(
              array, mid + 1, high, val
          )  # Search right
      if array[mid] <= val <= array[high]:
          return search_rotate_recur(
              array, mid + 1, high, val
          )  # Search right
      return search_rotate_recur(array, low, mid - 1, val)
  
label_desc: Use image node_id 2 for calling a global function with example usage: search_rotate_recur(array, low, high, val) and returns: search_rotate_recur, unknown, mid, search_rotate_recur, search_rotate_recur, search_rotate_recur