def METHOD_NAME(
        self, text, language, sentiment, sentiment_scores, error_code=None):
    expected_params = {'Text': text, 'LanguageCode': language}
    response = {'Sentiment': sentiment, 'SentimentScore': sentiment_scores}
    self._stub_bifurcator(
        'detect_sentiment', expected_params, response, error_code=error_code)