code: def get_from_config_or_model_args(config, arg_name):
      """Get the given argument from `config.model_args` if exist or in `config`."""
      if hasattr(config, "model_args"):
          if arg_name in config.model_args:
              return config.model_args[arg_name]
      return config[arg_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 6 for calling a global function with example usage: get_from_config_or_model_args(config, arg_name) and returns: config, config