code: def test_round_trip_default_ints(self):
      data = DataClassWithDefaults(
          required_int_with_default=1,
          optional_int_with_int_default=2,
          optional_int_with_none_default=3,
      )
      data_json = to_json(data)
      self.assertEqual(
          data, from_json(data_json, DataClassWithDefaults)
      )
  
imports: import unittest
  import json
  from dataclasses import dataclass
  from typing import Dict, List, Optional
  from helm.benchmark.augmentations.dialect_perturbation import DialectPerturbation
  from helm.benchmark.augmentations.extra_space_perturbation import ExtraSpacePerturbation
  from helm.benchmark.augmentations.filler_words_perturbation import FillerWordsPerturbation
  from helm.benchmark.augmentations.gender_perturbation import GenderPerturbation
  from helm.benchmark.augmentations.misspelling_perturbation import MisspellingPerturbation
  from helm.benchmark.augmentations.person_name_perturbation import PersonNamePerturbation
  from helm.benchmark.augmentations.space_perturbation import SpacePerturbation
  from helm.benchmark.augmentations.synonym_perturbation import SynonymPerturbation
  from helm.benchmark.augmentations.typos_perturbation import TyposPerturbation
  from helm.benchmark.augmentations.perturbation_description import PerturbationDescription
  from helm.common.codec import from_json, to_json
label_desc: Use image node_id 4 for calling the TestJsonCodec obj's underlying member method code with example usage: obj.test_round_trip_default_ints() without return types