code: def record_time(is_cuda=None):
      import time
  
      is_cuda = (
          is_cuda
          if is_cuda is not None
          else get_local_session().is_cuda
      )
      if is_cuda:
          import torch
  
          torch.cuda.synchronize()
      return time.time()
  
file_path: tutel/tutel/system.py
imports: import os, sys
  import re
  import logging
label_desc: Use image node_id 5 for calling a global function with example usage: record_time(is_cuda) and returns: time