code: def test_get_model_ops_and_info(self):
      # TODO update this to be more in the style of the above tests after a backport from 6 -> 5 exists
      script_module_v6 = (
          pytorch_test_dir / "cpp" / "jit" / "script_module_v6.ptl"
      )
      ops_v6 = _get_model_ops_and_info(script_module_v6)
      assert ops_v6["aten::add.int"].num_schema_args == 2
      assert ops_v6["aten::add.Scalar"].num_schema_args == 2
  
file_path: pytorch/test/mobile/test_bytecode.py
imports: import fnmatch
  import io
  import shutil
  import tempfile
  import torch
  import torch.utils.show_pickle
  from torch.jit.mobile import _load_for_lite_interpreter, _get_mobile_model_contained_types, _get_model_bytecode_version, _get_model_ops_and_info, _backport_for_mobile_to_buffer, _backport_for_mobile
  from torch.testing._internal.common_utils import TestCase, run_tests
  from pathlib import Path
label_desc: Use image node_id 5 for calling the testVariousModelVersions obj's underlying member method code with example usage: obj.test_get_model_ops_and_info() without return types