Implement a function named calculate_area in the /app/ directory that calculates the area of various geometric shapes based on the provided input.
Functionality Requirements:
The function should accept two parameters:
shape (string): Specifies the type of shape. It can be one of the following: "circle", "rectangle", or "triangle".
dimensions (tuple): A tuple containing the necessary dimensions for the shape:
For "circle": a single value representing the radius (e.g., (radius,)).
For "rectangle": two values representing the width and height (e.g., (width, height)).
For "triangle": two values representing the base and height (e.g., (base, height)).
The function should return a float representing the area of the specified shape, rounded to two decimal places:
Area of a circle: ( \pi \times \text{radius}^2 )
Area of a rectangle: ( \text{width} \times \text{height} )
Area of a triangle: ( 0.5 \times \text{base} \times \text{height} )
The function should handle invalid shape inputs by raising a ValueError with the message "Invalid shape".
The function should handle invalid dimensions (e.g., non-numeric values or incorrect number of dimensions) by raising a ValueError with the message "Invalid dimensions".
Output Requirements:
Ensure that the returned area is always a float, even if the result is a whole number.
Utilize Python's math module for the value of π (use math.pi).
Implement the above logic in the /app/ directory so that all provided test cases can pass successfully.