code: def test_type_conversion(self):
      # Default value must be of the same type as destination type.
      with self.assertRaisesRegex(
          ValueError,
          "Default value must be of the same type as the destination type",
      ):
          flag_def.SingleValueFlagDef(
              name="value",
              parse_type=int,
              required=False,
              default_value="zero",
          )
  
      int_flag_def = flag_def.SingleValueFlagDef(
          name="value",
          parse_type=int,
          required=False,
          default_value=0,
      )
  
      # Parser should not accept a value of the wrong type.
      with self.assertRaisesRegex(
          argument_parser.ParserError, "invalid int value: 'forty-two'"
      ):
          _new_parser(int_flag_def).parse_args(["--value", "forty-two"])
  
      results = _new_parser(int_flag_def).parse_args(["--value", "42"])
      self.assertEqual(42, results.value)
  
imports: from __future__ import annotations
  import argparse
  import enum
  import math
  from absl.testing import absltest
  from google.generativeai.notebook import argument_parser
  from google.generativeai.notebook import flag_def
label_desc: Use image node_id 6 for calling the SingleValueFlagDefTest obj's underlying member method code with example usage: obj.test_type_conversion() without return types