code: def fix_key(key):
      if "beta" in key:
          return key.replace("beta", "bias")
      if "gamma" in key:
          return key.replace("gamma", "weight")
      return key
  
file_path: BigDL/python/llm/src/bigdl/llm/transformers/utils.py
imports: import os
  from transformers.modeling_utils import _add_variant
  from ..utils.common import invalidInputError
  from typing import Union
  import torch
  from torch import nn
  import logging
label_desc: Use image node_id 5 for calling a global function with example usage: fix_key(key) and returns: key, key, key