code: def analyze_time(dataloader, times, epoch_time, fanout, batch_size):
      num_batches = len(dataloader)
      time_d = {
          "fanout": fanout,
          "batch_size": batch_size,
          "epoch_time": epoch_time,
          "epoch_time_per_batch": epoch_time / num_batches,
          "num_batches": num_batches,
      }
      for key, value in times.items():
          time_d[f"{key}_time_per_epoch"] = value
          time_d[f"{key}_time_per_batch"] = value / num_batches
  
      print(
          f"Time analysis for fanout = {fanout}, batch_size = {batch_size}"
      )
      for k in time_d.keys():
          if "time_per_epoch" in str(k):
              print(f"{k} = {time_d[k]:.2f} seconds")
      return time_d
  
file_path: cugraph/benchmarks/cugraph-dgl/scale-benchmarks/model.py
imports: import torch
  import torch.nn.functional
  import time
label_desc: Use image node_id 3 for calling a global function with example usage: analyze_time(dataloader, times, epoch_time, fanout, batch_size) and returns: time_d