code: def set_aliases(self, aliases, lang='en', append=True):
          
          if self.fast_run and not self.require_write:
              self.require_write = self.fast_run_container.check_language_data(qid=self.wd_item_id,
                                                                               lang_data=aliases, lang=lang,
                                                                               lang_data_type='aliases')
              if self.require_write:
                  self.init_data_load()
              else:
                  return
  
          if 'aliases' not in self.wd_json_representation:
              self.wd_json_representation['aliases'] = {}
  
          if not append or lang not in self.wd_json_representation['aliases']:
              self.wd_json_representation['aliases'][lang] = []
  
          for alias in aliases:
              found = False
              for current_aliases in self.wd_json_representation['aliases'][lang]:
                  if alias.strip().lower() != current_aliases['value'].strip().lower():
                      continue
                  else:
                      found = True
                      break
  
              if not found:
                  self.wd_json_representation['aliases'][lang].append({
                      'language': lang,
                      'value': alias
                  })
docs: set the aliases for a WD item
          :param aliases: a list of strings representing the aliases of a WD item
          :param lang: The language a description should be set for
          :param append: If true, append a new alias to the list of existing aliases, else, overwrite. Default: True
          :return: None