def METHOD_NAME(self, limit, key_ids, marker=None, truncated=False, error_code=None):
    expected_params = {'Limit': limit}
    if marker is not None:
        expected_params['Marker'] = marker
    response = {'Keys': [{'KeyId': kid} for kid in key_ids], 'Truncated': truncated}
    if truncated:
        response['NextMarker'] = 'test-token'
    self._stub_bifurcator(
        'list_keys', expected_params, response, error_code=error_code)