code: def rename_if_exists_decorator(func):
      @functools.wraps(func)
      def wrapper(file_path, *args, **kwargs):
          rename_if_exists(file_path)
          return func(file_path, *args, **kwargs)
  
      return wrapper
  
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 2 for calling a global function with example usage: rename_if_exists_decorator(func) and returns: wrapper, func