code: def restore_fp8_kv_cache(k_cache, v_cache, dtype):
      new_k_cache = torch.full(
          k_cache.shape, 128, dtype=torch.int16, device=k_cache.device
      )
      new_k_cache.view(torch.uint8)[:, :, :, 1::2] = k_cache
      new_k_cache = new_k_cache.view(torch.half)
      new_v_cache = torch.full(
          v_cache.shape, 128, dtype=torch.int16, device=v_cache.device
      )
      new_v_cache.view(torch.uint8)[:, :, :, 1::2] = v_cache
      new_v_cache = new_v_cache.view(torch.half)
  
      return new_k_cache.to(dtype=dtype), new_v_cache.to(dtype=dtype)
  
imports: import os
  import torch
  from bigdl.llm.utils.common import invalidInputError
  from bigdl.llm.ggml.quantize import ggml_tensor_qtype
  from bigdl.llm.transformers.utils import get_ipex_version, get_xpu_device_type
label_desc: Use image node_id 8 for calling a global function with example usage: restore_fp8_kv_cache(k_cache, v_cache, dtype) and returns: new_k_cache,  new_v_cache