code: def add_pipeline_model_mapping_to_test_file(
      test_file, overwrite=False
  ):
      """Add `pipeline_model_mapping` to `test_file`."""
      test_class = find_test_class(test_file)
      if test_class:
          add_pipeline_model_mapping(test_class, overwrite=overwrite)
  
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 10 for calling a global function with example usage: add_pipeline_model_mapping_to_test_file(test_file, overwrite) without return types