code: def maybe_synced(fn):
      if CUDA:
          synchronize = torch.cuda.synchronize
          synchronize()  # warmup
  
          def _fn():
              result = fn()
              synchronize()
              return result
  
          return _fn
      return fn
  
file_path: pytorch/functorch/benchmarks/operator_authoring.py
imports: import timeit
  from functools import partial
  import numpy
  import pandas
  import torch
  from functorch.compile import pointwise_operator
label_desc: Use image node_id 5 for calling a global function with example usage: maybe_synced(fn) and returns: fn, _fn, result