code: def test_unsupported_indices_fake_tensor_generated_with_op_level_debug(
      self,
  ):
      class EmbedModelWithoutPaddingIdx(torch.nn.Module):
          def forward(self, input, emb):
              return torch.nn.functional.embedding(input, emb)
  
      model = EmbedModelWithoutPaddingIdx()
      x = torch.randint(4, (4, 3, 2))
      embedding_matrix = torch.rand(10, 3)
  
      onnx_program = dynamo_export(
          model,
          x,
          embedding_matrix,
          export_options=ExportOptions(op_level_debug=True),
      )
      assert_has_diagnostics(
          onnx_program.diagnostic_context,
          diagnostics.rules.op_level_debugging,
          diagnostics.levels.WARNING,
          expected_node="aten.embedding.default",
      )
  
imports: from __future__ import annotations
  import io
  import tempfile
  from typing import Mapping, Tuple
  import onnx
  import pytorch_test_common
  import torch
  import transformers
  from torch import nn
  from torch._subclasses import fake_tensor
  from torch.nn import functional
  from torch.onnx import dynamo_export, ExportOptions
  from torch.onnx._internal.diagnostics import infra
  from torch.onnx._internal.fx import diagnostics, registration
  from torch.testing._internal import common_utils
label_desc: Use image node_id 10 for calling the TestFxToOnnx obj's underlying member method code with example usage: obj.test_unsupported_indices_fake_tensor_generated_with_op_level_debug() and returns: torch