code: def get_provider_name(provider_config: Union[str, tuple]) -> str:
      if isinstance(provider_config, tuple):
          provider_name = provider_config[0]
      else:
          assert isinstance(
              provider_config, str
          ), "input provider config is expected to be either str or tuple"
          provider_name = provider_config
      return provider_name
  
file_path: autogluon/multimodal/src/autogluon/multimodal/utils/onnx.py
imports: import logging
  import os
  from typing import Dict, List, Optional, Tuple, Union
  from torch import tensor
  from ..constants import AUTOMM, FEATURE_EXTRACTION, MULTICLASS
label_desc: Use image node_id 2 for calling a global function with example usage: get_provider_name(provider_config) and returns: provider_name