Write a polyfill for Promise.all.
For this Python implementation, promises is a list of already-resolved values. Return a new list containing every value in the original order, regardless of value type. An empty input must return an empty list.
Implement def promise_all(promises):. The argument is a JSON-compatible list, and the return value must be a new list with the same values and ordering.
def promise_all(promises):