code: def get_pipeline_model_mapping(test_class):
      """Get `pipeline_model_mapping` for `test_class`."""
      mapping = [
          (task, get_model_for_pipeline_test(test_class, task))
          for task in pipeline_test_mapping
      ]
      mapping = sorted(
          [
              (task, model)
              for task, model in mapping
              if model is not None
          ],
          key=lambda x: x[0],
      )
  
      return dict(mapping)
  
file_path: transformers/utils/add_pipeline_model_mapping_to_test.py
imports: import argparse
  import glob
  import inspect
  import os
  import re
  import unittest
  from get_test_info import get_test_classes
  from tests.test_pipeline_mixin import pipeline_test_mapping
label_desc: Use image node_id 4 for calling a global function with example usage: get_pipeline_model_mapping(test_class) and returns: dict