code: def test_raise_does_not_match_task_name(
      sentiment_task: tuple[transformers.Pipeline, TaskDefinition]
  ):
      # pipeline task does not match given task name or pipeline.task is None
      sentiment, original_task = sentiment_task
  
      with pytest.raises(
          bentoml.exceptions.BentoMLException,
          match=f"Argument 'task_name' 'custom' does not match pipeline task name '{sentiment.task}'.",
      ):
          _ = bentoml.transformers.save_model(
              "forbidden_override",
              sentiment,
              task_name="custom",
              task_definition=original_task,
          )
  
imports: from __future__ import annotations
  import logging
  import os
  import typing
  import pytest
  import transformers
  from transformers.models.auto.modeling_auto import AutoModelForAudioClassification
  from transformers.models.auto.modeling_auto import AutoModelForCausalLM
  from transformers.models.auto.modeling_auto import AutoModelForSequenceClassification
  from transformers.pipelines import check_task
  from transformers.pipelines import pipeline
  from transformers.pipelines.audio_classification import AudioClassificationPipeline
  from transformers.trainer_utils import set_seed
  import bentoml
  from bentoml.exceptions import BentoMLException
  from bentoml.transformers import ModelOptions
label_desc: Use image node_id 5 for calling a global function with example usage: test_raise_does_not_match_task_name(sentiment_task) without return types