class_docstr: Benchmarks is a simple but feature-complete benchmarking script to compare memory and time performance of models in
  Transformers.
code: def print_results(self, result_dict, type_label):
      self.print_fn(80 * "-")
      self.print_fn(
          "Model Name".center(30)
          + "Batch Size".center(15)
          + "Seq Length".center(15)
          + type_label.center(15)
      )
      self.print_fn(80 * "-")
      for model_name in self.args.model_names:
          for batch_size in result_dict[model_name]["bs"]:
              for sequence_length in result_dict[model_name]["ss"]:
                  result = result_dict[model_name]["result"][
                      batch_size
                  ][sequence_length]
                  if isinstance(result, float):
                      result = round(1000 * result) / 1000
                      result = (
                          "< 0.001" if result == 0.0 else str(result)
                      )
                  else:
                      result = str(result)
                  self.print_fn(
                      model_name[:30].center(30)
                      + str(batch_size).center(15),
                      str(sequence_length).center(15),
                      result.center(15),
                  )
      self.print_fn(80 * "-")
  
imports: import copy
  import csv
  import linecache
  import os
  import platform
  import sys
  import warnings
  from abc import ABC, abstractmethod
  from collections import defaultdict, namedtuple
  from datetime import datetime
  from multiprocessing import Pipe, Process, Queue
  from multiprocessing.connection import Connection
  from typing import Callable, Iterable, List, NamedTuple, Optional, Union
  from ..None import AutoConfig, PretrainedConfig
  from ..None import __version__
  from ..utils import is_psutil_available, is_py3nvml_available, is_tf_available, is_torch_available, logging
  from .benchmark_args_utils import BenchmarkArguments
label_desc: Use image node_id 14 for calling the Benchmark obj's underlying member method code with example usage: obj.print_results(result_dict, type_label) without return types