code: def torch_save(
      file_path: str,
      obj: object,
      export_files: Optional[List[str]] = None,
  ):
      torch.save(obj, file_path)
      if export_files is not None:
          export_files.append(file_path)
  
file_path: DeepKE/example/llm/CPM-Bee/src/cpm_live/utils/export.py
imports: import os
  import time
  import functools
  import torch
  import bmtrain
  import json
  from cpm_live.models import CPMBee
  from .log import logger
  from typing import List, Optional
label_desc: Use image node_id 4 for calling a global function with example usage: torch_save(file_path, obj, export_files) without return types