code: def bart_or_mbart_model_heuristic(
      model_config: transformers.BartConfig,
  ) -> ModelArchitectures:
      if model_config.is_valid_mbart():
          return ModelArchitectures.MBART
      else:
          return ModelArchitectures.BART
  
file_path: jiant/jiant/shared/model_resolution.py
imports: from dataclasses import dataclass
  from enum import Enum
  from jiant.utils.python.datastructures import BiDict
  import transformers
label_desc: Use image node_id 4 for calling a global function with example usage: bart_or_mbart_model_heuristic(model_config) and returns: ModelArchitectures, ModelArchitectures