def METHOD_NAME(self, key_id, window, error_code=None):
    expected_params = {'KeyId': key_id, 'PendingWindowInDays': window}
    response = {}
    self._stub_bifurcator(
        'schedule_key_deletion', expected_params, response, error_code=error_code)