code: def test_run_clm_config_overrides(self):
      # test that config_overrides works, despite the misleading dumps of default un-updated
      # config via tokenizer
  
      tmp_dir = self.get_auto_remove_tmp_dir()
      testargs = f"""
              run_clm.py
              --model_type gpt2
              --tokenizer_name gpt2
              --train_file ./tests/fixtures/sample_text.txt
              --output_dir {tmp_dir}
              --config_overrides n_embd=10,n_head=2
              """.split()
  
      if torch_device != "cuda":
          testargs.append("--no_cuda")
  
      logger = run_clm.logger
      with patch.object(sys, "argv", testargs):
          with CaptureLogger(logger) as cl:
              run_clm.main()
  
      self.assertIn('"n_embd": 10', cl.out)
      self.assertIn('"n_head": 2', cl.out)
  
imports: import argparse
  import json
  import logging
  import os
  import sys
  from unittest.mock import patch
  import torch
  from transformers import ViTMAEForPreTraining, Wav2Vec2ForPreTraining
  from transformers.testing_utils import CaptureLogger, TestCasePlus, get_gpu_count, slow, torch_device
  from transformers.utils import is_apex_available
label_desc: Use image node_id 3 for calling the ExamplesTests obj's underlying member method code with example usage: obj.test_run_clm_config_overrides() without return types