docstr: Tests that the kwargs default values are serialized even if they are not
  specified
docstr_tok: ["Tests","that","the","kwargs","default","values","are","serialized","even","if","they","are","not","specified"]
code: def test_kwargs_default(self) -> None:
      """
      Tests that the kwargs default values are serialized even if they are not
      specified
      """
  
      def f(x: torch.Tensor) -> torch.Tensor:
          values = torch.randn(3, 2)
          return torch.searchsorted(x, values, side="right", right=True)
  
      x, _ = torch.sort(torch.randn(3, 4))
      exported_module = export(f, (x,)).run_decompositions()
      serialized = ExportedProgramSerializer().serialize(
          exported_module
      )
  
      node = serialized.exported_program.graph_module.graph.nodes[-1]
      self.assertEqual(
          node.target, "torch.ops.aten.searchsorted.Tensor"
      )
      self.assertEqual(len(node.inputs), 4)
      self.assertEqual(node.inputs[2].name, "right")
      self.assertEqual(node.inputs[2].arg.as_bool, True)
      self.assertEqual(node.inputs[3].name, "side")
      self.assertEqual(node.inputs[3].arg.as_string, "right")
  
imports: import io
  import pathlib
  import tempfile
  import unittest
  import zipfile
  import torch
  import torch._dynamo
  from torch.export import export, save, load, Dim
  from torch._export.db.case import ExportCase, normalize_inputs, SupportLevel
  from torch._export.db.examples import all_examples
  from torch._export.serde.serialize import ExportedProgramDeserializer, ExportedProgramSerializer, canonicalize, deserialize, serialize, SerializeError
  from torch._subclasses.fake_tensor import FakeTensor
  from torch.fx.experimental.symbolic_shapes import is_concrete_int
  import torch.utils._pytree
  from torch.testing._internal.common_utils import instantiate_parametrized_tests, parametrize, run_tests, TestCase, TemporaryFileName, IS_FBCODE, IS_MACOS, IS_SANDCASTLE, IS_WINDOWS, find_library_location
label_desc: Use image node_id 5 for calling the TestSerialize obj's underlying member method code with example usage: obj.test_kwargs_default() and returns: torch