docstr: Return a list of new locations, with the choice of country,
  nationality, and city.
docstr_tok: ["Return","a","list","of","new","locations",",","with","the","choice","of","country",",","nationality",",","and","city","."]
code: def _get_new_location(self, word):
      """Return a list of new locations, with the choice of country,
      nationality, and city."""
      language = ""
      if self.language == "esp" or self.language == "spanish":
          language = "-spanish"
      elif self.language == "fra" or self.language == "french":
          language = "-french"
      if word in NAMED_ENTITIES["country" + language]:
          return np.random.choice(
              NAMED_ENTITIES["country" + language], self.n
          )
      elif word in NAMED_ENTITIES["nationality" + language]:
          return np.random.choice(
              NAMED_ENTITIES["nationality" + language], self.n
          )
      elif word in NAMED_ENTITIES["city"]:
          return np.random.choice(NAMED_ENTITIES["city"], self.n)
      return []
  
file_path: TextAttack/textattack/transformations/word_swaps/word_swap_change_location.py
imports: from collections import defaultdict
  import more_itertools
  import numpy
  from textattack.shared.data import NAMED_ENTITIES
  from .word_swap import WordSwap
label_desc: Use image node_id 3 for calling the WordSwapChangeLocation obj's underlying member method code with example usage: obj._get_new_location(word) and returns: list, np, np, np