code: def check_config_and_model_args(config, arg_name, value):
      """Check the give argument in `config.model_args` if exist or in `config` for
      the given value.
  
      Return False if the argument does not exist in `config.model_args` or `config`.
      This is to patch up the compatibility between models with and without `model_args`.
  
      TODO: Remove this in the future with a unified approach.
      """
      if hasattr(config, "model_args"):
          if arg_name in config.model_args:
              return config.model_args[arg_name] == value
      if hasattr(config, arg_name):
          return config[arg_name] == value
      return False
  
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 5 for calling a global function with example usage: check_config_and_model_args(config, arg_name, value) and returns: False, unknown, unknown