code: def time_cpu(fn, inputs, test_runs):
      s = time.perf_counter()
      for _ in range(test_runs):
          fn(*inputs)
      e = time.perf_counter()
      return (e - s) / test_runs * 1000
  
file_path: pytorch/torch/utils/jit/log_extract.py
imports: from contextlib import contextmanager
  from typing import Any, List, Tuple, cast
  import random
  import torch
  import time
  from torch.utils.benchmark import Timer
label_desc: Use image node_id 5 for calling a global function with example usage: time_cpu(fn, inputs, test_runs) and returns: unknown