code: def test_exportdb_supported(
      self, name: str, case: ExportCase
  ) -> None:
      model = case.model
  
      inputs_export = normalize_inputs(case.example_inputs)
      inputs_model = copy.deepcopy(inputs_export)
      exported_program = export(
          model,
          inputs_export.args,
          inputs_export.kwargs,
          dynamic_shapes=case.dynamic_shapes,
      )
      exported_program.graph_module.print_readable()
  
      self.assertEqual(
          exported_program(*inputs_export.args, **inputs_export.kwargs),
          model(*inputs_model.args, **inputs_model.kwargs),
      )
  
      if case.extra_inputs is not None:
          inputs = normalize_inputs(case.extra_inputs)
          self.assertEqual(
              exported_program(*inputs.args, **inputs.kwargs),
              model(*inputs.args, **inputs.kwargs),
          )
  
file_path: pytorch/test/export/test_db.py
imports: import copy
  import unittest
  import torch._dynamo
  from torch._export.db.case import ExportCase, normalize_inputs, SupportLevel
  from torch._export.db.examples import filter_examples_by_support_level, get_rewrite_cases
  from torch.export import export
  from torch.testing._internal.common_utils import instantiate_parametrized_tests, parametrize, run_tests, TestCase
label_desc: Use image node_id 1 for calling the ExampleTests obj's underlying member method code with example usage: obj.test_exportdb_supported(name, case) without return types