Implement a function calculate_total_price in the /app/ directory that takes two parameters: a list of item prices and a tax rate. The function should compute the total price by summing the item prices and applying the tax rate to the total.
Requirements:
The function should be named calculate_total_price.
The first parameter, item_prices, should be a list of floats that represents the prices of individual items.
The second parameter, tax_rate, should be a float representing the tax percentage expressed as a decimal (e.g., 0.07 for a 7% tax rate).
The function must perform the following steps:
Calculate the sum of the item prices.
Calculate the total tax by multiplying the sum of item prices by the tax rate.
Add the total tax to the sum of item prices to get the final total price.
The function should return the total price as a float rounded to two decimal places.
Handle edge cases where:
If item_prices is an empty list, the function should return 0.00.
If tax_rate is negative, the function should return the sum of item prices unchanged (apply no tax).
Example:
python
calculate_total_price([10.00, 20.00], 0.07) # Should return 32.10
calculate_total_price([], 0.05) # Should return 0.00
calculate_total_price([100.00], -0.02) # Should return 100.00
Ensure that your implementation passes all the requirements outlined above so that the provided test cases function correctly.