code: def _get_model_architecture(
      config: PretrainedConfig,
  ) -> Type[nn.Module]:
      architectures = getattr(config, "architectures", [])
      for arch in architectures:
          if arch in _MODEL_REGISTRY:
              return _MODEL_REGISTRY[arch]
      invalidInputError(
          False,
          f"Model architectures {architectures} are not supported for now. "
          f"Supported architectures: {list(_MODEL_REGISTRY.keys())}",
      )
  
file_path: BigDL/python/llm/src/bigdl/llm/vllm/model_executor/model_loader.py
imports: import contextlib
  from typing import Type
  import torch
  import torch.nn
  from transformers import PretrainedConfig
  from bigdl.llm.vllm.config import ModelConfig
  from bigdl.llm.vllm.model_executor.models.bigdl_llama import BigDLLlamaForCausalLM
  from bigdl.llm.vllm.model_executor.models.bigdl_mixtral import BigDLMixtralForCausalLM
  from bigdl.llm.vllm.model_executor.models.bigdl_mistral import BigDLMistralForCausalLM
  from bigdl.llm.vllm.model_executor.models.bigdl_chatglm import BigDLChatGLMForCausalLM
  from bigdl.llm.utils.common import invalidInputError
label_desc: Use image node_id 2 for calling a global function with example usage: _get_model_architecture(config) and returns: _MODEL_REGISTRY