def METHOD_NAME(
        self, name, lang_code, bucket_name, training_key, data_access_role_arn,
        mode, classifier_arn, error_code=None):
    expected_params = {
        'DocumentClassifierName': name,
        'LanguageCode': lang_code,
        'InputDataConfig': {'S3Uri': f's3://{bucket_name}/{training_key}'},
        'DataAccessRoleArn': data_access_role_arn,
        'Mode': mode}
    response = {'DocumentClassifierArn': classifier_arn}
    self._stub_bifurcator(
        'create_document_classifier', expected_params, response,
        error_code=error_code)