code: def test_annotated_nested(self):
      input = torch.rand(2, 5, dtype=torch.float)
      quantized_model = self._create_quantized_model(
          model_class=AnnotatedNestedModel, qengine="qnnpack"
      )
      self._compare_script_and_mobile(
          model=quantized_model, input=input
      )
  
imports: import torch
  import torch.utils.bundled_inputs
  import io
  from tempfile import TemporaryFileName
  from typing import Dict, List
  import inspect
  from torch.testing import FileCheck
  from torch.jit.mobile import _load_for_lite_interpreter, _export_operator_list
  from torch.testing._internal.common_utils import TestCase, run_tests
  from torch.testing._internal.common_quantization import AnnotatedSingleLayerLinearModel, TwoLayerLinearModel, AnnotatedNestedModel
  from torch.testing._internal.common_quantization import QuantizationLiteTestCase
label_desc: Use image node_id 3 for calling the TestLiteScriptQuantizedModule obj's underlying member method code with example usage: obj.test_annotated_nested() without return types