code: def _test_quant_tag_preservation_through_decomp(
      self, model, example_inputs, from_node_to_tags
  ):
      ep = export.export(model, example_inputs)
      found_tags = True
      not_found_nodes = ""
      for from_node, tag in from_node_to_tags.items():
          for n in ep.graph_module.graph.nodes:
              from_node_meta = n.meta.get("from_node", None)
              if from_node_meta is None:
                  continue
              if not isinstance(from_node_meta, list):
                  raise ValueError(
                      f"from_node metadata is of type {type(from_node_meta)}, but expected list"
                  )
              for meta in from_node_meta:
                  node_target = meta[1]
                  if node_target == from_node:
                      node_tag = n.meta.get("quantization_tag", None)
                      if node_tag is None or tag != node_tag:
                          not_found_nodes += str(n.target) + ", "
                          found_tags = False
                          break
              if not found_tags:
                  break
      self.assertTrue(
          found_tags,
          f"Decomposition did not preserve quantization tag for {not_found_nodes}",
      )
  
imports: import copy
  import unittest
  from typing import List
  import torch
  import torch._export
  from torch.ao.quantization.quantize_pt2e import convert_pt2e, prepare_pt2e
  from torch.ao.quantization.quantizer import Quantizer
  from torch.ao.quantization.quantizer.xnnpack_quantizer import get_symmetric_quantization_config
  from torch.ao.quantization.quantizer.xnnpack_quantizer_utils import OP_TO_ANNOTATOR
  from torch.fx import Node
  from torch.testing._internal.common_quantization import QuantizationTestCase
  from torch.testing._internal.common_utils import IS_WINDOWS
label_desc: Use image node_id 1 for calling the TestMetaDataPorting obj's underlying member method code with example usage: obj._test_quant_tag_preservation_through_decomp(model, example_inputs, from_node_to_tags) without return types