You are given an array of objects where each object contains a courier reaction to a new order from a restaurant. Calculate the acceptance rate for orders for each courier.
Each object has courier_id and reaction, where reaction is either "accepted" or "rejected". Implement def acceptance_rates(reactions): and return a dictionary mapping each courier ID to a decimal acceptance rate, calculated as accepted reactions divided by total reactions.
def acceptance_rates(reactions):