code: def _get_patch_map():
      global _mapping_fastchat
  
      if _mapping_fastchat is None:
          _mapping_fastchat = []
  
      from fastchat.model import model_adapter
  
      _mapping_fastchat += [
          [BaseModelAdapter, "load_model", load_model_base, None],
          [ChatGLMAdapter, "load_model", load_model_chatglm, None],
          [model_adapter, "load_model", load_model, None],
      ]
  
      return _mapping_fastchat
  
imports: from fastchat.model.model_adapter import register_model_adapter, BaseModelAdapter, ChatGLMAdapter
  from fastchat.modules.gptq import GptqConfig, load_gptq_quantized
  import accelerate
  from fastchat.modules.awq import AWQConfig, load_awq_quantized
  from fastchat.model.model_adapter import get_model_adapter, raise_warning_for_incompatible_cpu_offloading_configuration
  from fastchat.model.monkey_patch_non_inplace import replace_llama_attn_with_non_inplace_operations
  from fastchat.constants import CPU_ISA
  from fastchat.utils import get_gpu_memory
  import torch
  import warnings
  from transformers import AutoTokenizer
  from typing import Dict, List, Optional
  import math
  import psutil
  from bigdl.llm.utils.common import invalidInputError
label_desc: Use image node_id 1 for calling a global function with example usage: _get_patch_map() and returns: _mapping_fastchat