code: def is_sorted(stack):
      storage_stack = []
      for i in range(len(stack)):
          if len(stack) == 0:
              break
          first_val = stack.pop()
          if len(stack) == 0:
              break
          second_val = stack.pop()
          if first_val < second_val:
              return False
          storage_stack.append(first_val)
          stack.append(second_val)
  
      # Backup stack
      for i in range(len(storage_stack)):
          stack.append(storage_stack.pop())
  
      return True
  
label_desc: Use image node_id 1 for calling a global function with example usage: is_sorted(stack) and returns: True, False