def test_base_exception_handler_inference_errors(self, mock_api_exception_handler):
        """A generic inference error should be converted to an InvalidArgError.
        Currently, we only raise generic inference errors if we receive an error from the inference server.
        """
        with self.subTest("Inference error: Generic Inference Error"):
            marqo_base_exception_handler(
                self.normal_request,
                inference_exceptions.InferenceError(self.generic_error_message)
            )
            assert isinstance(mock_api_exception_handler.call_args_list[-1][0][1],
                              api_exceptions.InvalidArgError)  # 400
A generic inference error should be converted to an InvalidArgError.
        Currently, we only raise generic inference errors if we receive an error from the inference server.
        
tests/integ_tests/tensor_search/test_api_exception_handler.py