code: def _get_replacement_words(self, word, word_part_of_speech):
      replacement_words = []
      tag = word_part_of_speech
      if (
          tag.value in ("B-PER", "S-PER")
          and tag.score >= self.confidence_score
          and not self.last_only
      ):
          replacement_words = self._get_firstname(word)
      elif (
          tag.value in ("E-PER", "S-PER")
          and tag.score >= self.confidence_score
          and not self.first_only
      ):
          replacement_words = self._get_lastname(word)
      return replacement_words
  
file_path: TextAttack/textattack/transformations/word_swaps/word_swap_change_name.py
imports: from collections import defaultdict
  import numpy
  from textattack.shared.data import PERSON_NAMES
  from .word_swap import WordSwap
label_desc: Use image node_id 3 for calling the WordSwapChangeName obj's underlying member method code with example usage: obj._get_replacement_words(word, word_part_of_speech) and returns: replacement_words