code: def test_person_name_perturbation():
      data_augmenter = DataAugmenter(
          perturbations=[
              PersonNamePerturbation(
                  prob=1.0,
                  source_class={"race": "white_american"},
                  target_class={"race": "black_american"},
                  person_name_type="first_name",
                  preserve_gender=True,
              )
          ],
      )
      instance: Instance = Instance(
          id="id0",
          input=Input(
              text="I learned that Jack, Peter, and Lauren are siblings! Do you know who is the oldest?"
          ),
          references=[
              Reference(
                  Output(text="Peter and peter were friends."), tags=[]
              )
          ],
      )
      instances: List[Instance] = data_augmenter.generate(
          [instance], include_original=True
      )
  
      print(instances)
      assert len(instances) == 2
      assert instances[1].perturbation.name == "person_name"
      assert (
          instances[1].input.text
          == "I learned that Lamar, Tyree, and Sharise are siblings! Do you know who is the oldest?"
      )
      assert (
          instances[1].references[0].output.text
          == "Tyree and tyree were friends."
      )
  
imports: from typing import List
  from helm.benchmark.scenarios.scenario import Input, Instance, Output, Reference
  from .data_augmenter import DataAugmenter
  from .extra_space_perturbation import ExtraSpacePerturbation
  from .misspelling_perturbation import MisspellingPerturbation
  from .contraction_expansion_perturbation import ContractionPerturbation, ExpansionPerturbation
  from .typos_perturbation import TyposPerturbation
  from .filler_words_perturbation import FillerWordsPerturbation
  from .synonym_perturbation import SynonymPerturbation
  from .lowercase_perturbation import LowerCasePerturbation
  from .space_perturbation import SpacePerturbation
  from .dialect_perturbation import DialectPerturbation
  from .person_name_perturbation import PersonNamePerturbation
  from .gender_perturbation import GenderPerturbation
label_desc: Use image node_id 11 for calling a global function with example usage: test_person_name_perturbation() without return types