def METHOD_NAME(api_client, format_param, records_param):
    logs = '{"api": "application programing interface logs"}'
    res_bytes = logs.encode("utf-8")
    async def mock_get_records_dumb(identifier, records, format_type):
        return res_bytes
    with patch("opentrons.system.log_control.get_records_dumb") as m:
        m.side_effect = mock_get_records_dumb
        response = api_client.get(
            f"/logs/api.log?format={format_param}&records={records_param}"
        )
        assert response.status_code == 422
        m.assert_not_called()