code: def save_instance(instance, file_path):
      """
      save(dump) an instance to a pickle file
          Parameter
              instance :
                  data to be dumped
              file_path : string / pathlib.Path()
                  path of file to be dumped
      """
      file_path = pathlib.Path(file_path)
      with file_path.open("wb") as fr:
          pickle.dump(instance, fr, C.dump_protocol_version)
  
file_path: qlib/qlib/contrib/online/utils.py
imports: import pathlib
  import pickle
  import yaml
  import pandas
  from ...data import D
  from ...config import C
  from ...log import get_module_logger
  from ...utils import get_next_trading_date
  from ...backtest.exchange import Exchange
label_desc: Use image node_id 2 for calling a global function with example usage: save_instance(instance, file_path) without return types