code: def _check_quantized_forward(self, model, num_nodes):
      qconfig_dict = {"": default_dynamic_qconfig}
      m = OnDevicePTQUtils.ptq_dynamic_quantize(model, qconfig_dict)
      self._validate_quantized_forward(m, num_nodes)
  
      qconfig_dict = {"": per_channel_dynamic_qconfig}
      m = OnDevicePTQUtils.ptq_dynamic_quantize(model, qconfig_dict)
      self._validate_quantized_forward(m, num_nodes)
  
imports: import torch
  import torch._C
  from torch.ao.quantization import default_dynamic_qconfig, per_channel_dynamic_qconfig
  from torch.ao.quantization.quantize_jit import prepare_dynamic_jit, convert_dynamic_jit, _prepare_ondevice_dynamic_jit, _quantize_ondevice_dynamic_jit
  from torch.testing._internal.common_utils import TestCase
  from torch.testing._internal.common_quantization import get_script_module, LinearAddModel
  from torch.jit.mobile import _load_for_lite_interpreter, LiteScriptModule
  from torch.testing import FileCheck
  from torch.utils import bundled_inputs
  import io
  from typing import Dict
label_desc: Use image node_id 6 for calling the TestOnDeviceDynamicPTQFinalize obj's underlying member method code with example usage: obj._check_quantized_forward(model, num_nodes) without return types