def METHOD_NAME(code_model, operation, base_type):
    operation.responses = [
        Response(
            yaml_data={"statusCodes": [200]},
            code_model=code_model,
            headers=[],
            type=base_type,
        ),
        Response(
            yaml_data={"statusCodes": [202]},
            code_model=code_model,
            headers=[],
            type=base_type,
        ),
    ]
    operation.exceptions = [
        Response(
            yaml_data={"statusCodes": ["default"]},
            code_model=code_model,
            headers=[],
            type=None,
        )
    ]
    assert operation.has_optional_return_type is False