Implement a function calculate_area in the file /app/solution.py that calculates the area of different geometric shapes. The function should take a shape type as a string and corresponding dimensions as arguments. The supported shapes and their requirements are:
Circle: The shape type should be "circle". The function should accept one argument called radius (a float), and it should return the area calculated using the formula ( \pi \times \text{radius}^2 ).
Rectangle: The shape type should be "rectangle". The function should accept two arguments called width and height (both floats), and it should return the area calculated using the formula ( \text{width} \times \text{height} ).
Triangle: The shape type should be "triangle". The function should accept two arguments called base and height (both floats), and it should return the area calculated using the formula ( 0.5 \times \text{base} \times \text{height} ).
The function should raise a ValueError if an unsupported shape type is provided.
Ensure that the function is well-documented with appropriate docstrings. Once implemented, this function should pass all provided tests related to the area calculations for the specified shapes.