Write test cases based on the following API documentation for an image recognition software: 1. **API Endpoint:** /classify. **Description:** This endpoint accepts image files and returns classification results. **Parameters:** image (file). **Success Response:** {"category": "animals"}. **Error Response:** {"error": "Invalid image format"}. 2. **API Endpoint:** /detect. **Description:** This endpoint detects objects within an image and returns their locations. **Parameters:** image (file). **Success Response:** {"objects": [{"label": "cat", "bounding_box": {"x": 10, "y": 20, "width": 100, "height": 150}}]}. **Error Response:** {"error": "Image processing failed"}.  [/INST] [{"CHD_test_name":"Test /classify Endpoint with Valid Image","CHD_test_desc":"Verify that the /classify endpoint correctly classifies a valid image.","CHD_test_steps":["1. Send a POST request to /classify with a valid image file (e.g., 'dog.jpg').","2. Check the response to ensure it contains a category (e.g., 'animals').","3. Test with various image categories to validate accuracy."],"CHD_test_expected":"The response should correctly classify the image into the appropriate category."},{"CHD_test_name":"Test /classify Endpoint with Invalid Image Format","CHD_test_desc":"Verify that the /classify endpoint returns an error for unsupported image formats.","CHD_test_steps":["1. Send a POST request to /classify with an unsupported image format (e.g., '.bmp').","2. Verify that the response contains an error message indicating 'Invalid image format'."],"CHD_test_expected":"The response should return an error message for unsupported image formats."},{"CHD_test_name":"Test /detect Endpoint for Object Detection","CHD_test_desc":"Verify that the /detect endpoint correctly identifies and locates objects within an image.","CHD_test_steps":["1. Send a POST request to /detect with an image containing objects (e.g., 'cat and dog.jpg').","2. Check the response for accurate bounding boxes and labels for each detected object.","3. Test with images of varying complexity and verify the detection accuracy."],"CHD_test_expected":"The response should correctly identify and draw bounding boxes around each object in the image."}] </s>
