code: def save_pkl(data: Any, fp: Path, verbose: bool = True) -> None:
      """
      保存文件
      Args :
          data (Any) : 数据
          fp (String) :保存的地址
          verbose (bool) : 是否打印日志
      """
      if verbose:
          logger.info(f"save data in {fp}")
  
      with open(fp, "wb") as f:
          pickle.dump(data, f)
  
file_path: DeepKE/src/deepke/relation_extraction/standard/utils/ioUtils.py
imports: import os
  import csv
  import json
  import pickle
  import logging
  from typing import NewType, List, Tuple, Dict, Any
label_desc: Use image node_id 2 for calling a global function with example usage: save_pkl(data, fp, verbose) without return types