code: def test_translation_with_no_language_no_model_fails(self):
      with self.assertRaises(ValueError):
          pipeline(task="translation")
  
file_path: transformers/tests/pipelines/test_pipelines_translation.py
imports: import unittest
  import pytest
  from transformers import MODEL_FOR_SEQ_TO_SEQ_CAUSAL_LM_MAPPING, TF_MODEL_FOR_SEQ_TO_SEQ_CAUSAL_LM_MAPPING, MBart50TokenizerFast, MBartConfig, MBartForConditionalGeneration, TranslationPipeline, pipeline
  from transformers.testing_utils import is_pipeline_test, require_tf, require_torch, slow
  from .test_pipelines_common import ANY
label_desc: Use image node_id 5 for calling the TranslationNewFormatPipelineTests obj's underlying member method code with example usage: obj.test_translation_with_no_language_no_model_fails() without return types