code: def compute_time_model(model, loss_fun):
      """Times model."""
      logger.info("Computing model timings only...")
      # Compute timings
      test_fw_time = compute_time_eval(model)
      train_fw_time, train_bw_time = compute_time_train(model, loss_fun)
      train_fw_bw_time = train_fw_time + train_bw_time
      # Output iter timing
      iter_times = {
          "test_fw_time": test_fw_time,
          "train_fw_time": train_fw_time,
          "train_bw_time": train_bw_time,
          "train_fw_bw_time": train_fw_bw_time,
      }
      logger.info(logging.dump_log_data(iter_times, "iter_times"))
  
file_path: pycls/pycls/core/benchmark.py
imports: import pycls.core.logging
  import pycls.core.net
  import pycls.datasets.loader
  import torch
  import torch.cuda.amp
  from pycls.core.config import cfg
  from pycls.core.timer import Timer
label_desc: Use image node_id 4 for calling a global function with example usage: compute_time_model(model, loss_fun) without return types