code: def add_mem_time(info, mem_usage, tim_usage):
      torch.cuda.synchronize()
      mem_usage[info] = see_memory()
      tim_usage[info] = time.time()
      return mem_usage, tim_usage
  
imports: import time
  from typing import Dict, List, Union
  import torch
  import bmtrain
  import os
  from opendelta import LoraModel
  from cpm_live.arguments import get_args
  from cpm_live.models import CPMBee, CPMBeeConfig
  from cpm_live.tokenizers import CPMBeeTokenizer
  from cpm_live.utils import allgather_objects
  from cpm_live.training_tasks.bee import FinetuneDataset
label_desc: Use image node_id 8 for calling a global function with example usage: add_mem_time(info, mem_usage, tim_usage) and returns: mem_usage,  tim_usage