code: def get_path(
      layer: LayerType,
      batch_size: int,
      num_runs: int,
      num_repeats: int,
      gsm_mode: str,
      random_seed: Optional[int] = None,
      forward_only: bool = False,
      root: str = "./results/raw/",
      suffix: str = "",
  ) -> str:
      """Gets the path to the file where the corresponding results are located.
      File is presumed to be a pickle file.
  
      Args:
          layer: full layer name
          batch_size: batch size
          num_runs: number of runs per benchmark
          num_repeats: how many benchmarks were run
          random_seed: the initial random seed
          forward_only: whether backward passes were skipped
          root: directory to write results to
          suffix: optional string to append to file name
  
      Returns:
          Path to results pickle file
      """
      pickle_name = f"{layer}_mode_{gsm_mode}_bs_{batch_size}_runs_{num_runs}_repeats_{num_repeats}_seed_{random_seed}"
      if forward_only:
          pickle_name += "_forward_only"
  
      if len(suffix) and not suffix.startswith("_"):
          suffix = f"_{suffix}"
  
      return f"{root}{pickle_name}{suffix}.pkl"
  
file_path: opacus/benchmarks/utils.py
imports: import glob
  import pickle
  from collections import namedtuple
  from typing import Any, Dict, List, Optional
  import numpy
  import pandas
  import torch
  from benchmarks.layers import LayerType
label_desc: Use image node_id 3 for calling a global function with example usage: get_path(layer, batch_size, num_runs, num_repeats, gsm_mode, random_seed, forward_only, root, suffix) and returns: root, pickle_name, suffix, str