You are working on a project that involves processing different types of shapes. You've decided to create an enum to represent the types of shapes you're working with: ShapeType. The ShapeType enum has four values: CIRCLE, SQUARE, TRIANGLE, and RECTANGLE.
Write a function calculate_area(shape_type, *args) that takes in a ShapeType value and a variable number of arguments. The number and type of arguments depend on the ShapeType. For a CIRCLE, the function takes in one argument (the radius). For a SQUARE, TRIANGLE, and RECTANGLE, the function takes in two arguments (the length and width, base and height, or side length respectively).
The function should calculate the area of the shape based on the arguments provided.