code: def _assert_counting_information(
      self,
      ort_backend: OrtBackend,
      # Number of session runs.
      # If there is no graph break, this should be the same as
      # total number of forward calls.
      expected_execution_count: int,
      # Number of GraphModule's cached.
      # With one graph break, a model will be mapped
      # to two GraphModule's.
      number_of_cached_graph_modules: int,
      # Number of ONNX models cached for each GraphModule,
      # number_of_exported_onnx_models[i] contains # of ONNX models exported from
      # the i-th element (type: torch.fx.GraphModule) in
      # OrtBackend._all_ort_execution_info.execution_info_per_graph_module.values().
      number_of_exported_onnx_models_for_all_graph_modules: Tuple[
          int, ...
      ],
  ):
      self.assertEqual(
          expected_execution_count, ort_backend.execution_count
      )
      self.assertEqual(
          len(
              ort_backend._all_ort_execution_info.execution_info_per_graph_module
          ),
          number_of_cached_graph_modules,
      )
      self.assertEqual(
          len(
              ort_backend._all_ort_execution_info.execution_info_per_graph_module
          ),
          len(number_of_exported_onnx_models_for_all_graph_modules),
      )
      for (
          onnx_info,
          expected_number_of_onnx_models,
      ) in zip(
          ort_backend._all_ort_execution_info.execution_info_per_graph_module.values(),
          number_of_exported_onnx_models_for_all_graph_modules,
      ):
          self.assertEqual(
              len(onnx_info), expected_number_of_onnx_models
          )
  
imports: from __future__ import annotations
  import copy
  import dataclasses
  import os
  import sys
  from typing import Tuple
  import onnxruntime
  import torch
  import torch._dynamo.backends.registry
  from parameterized import parameterized
  from torch import nn
  from torch.onnx import _OrtBackend, _OrtBackendOptions, ExportOptions
  from torch.testing._internal import common_utils
  import onnx_test_common
label_desc: Use image node_id 8 for calling the TestDynamoWithONNXRuntime obj's underlying member method code with example usage: obj._assert_counting_information(ort_backend, expected_execution_count, number_of_cached_graph_modules, number_of_exported_onnx_models_for_all_graph_modules) without return types