code: def _process_model_name(config_dict: Dict) -> str:
      """Format the model name as expected. It is a band-aid for the old `vocoder` model names.
  
      Args:
          config_dict (Dict): A dictionary including the config fields.
  
      Returns:
          str: Formatted modelname.
      """
      model_name = (
          config_dict["model"]
          if "model" in config_dict
          else config_dict["generator_model"]
      )
      model_name = model_name.replace("_generator", "").replace(
          "_discriminator", ""
      )
      return model_name
  
file_path: TTS/TTS/config/__init__.py
imports: import json
  import os
  import re
  from typing import Dict
  import fsspec
  import yaml
  from coqpit import Coqpit
  from TTS.config.shared_configs import *
  from TTS.utils.generic_utils import find_module
label_desc: Use image node_id 3 for calling a global function with example usage: _process_model_name(config_dict) and returns: model_name