code: def nie(self):
          
  
          first_chr = random.randrange(0, 3)
          doi_body = str(random.randrange(0, 10000000)).zfill(7)
          control = self._calculate_control_doi(str(first_chr) + doi_body)
          return "XYZ"[first_chr] + doi_body + control
docs: https://es.wikipedia.org/wiki/N%C3%BAmero_de_identidad_de_extranjero
          :return: a random Spanish NIE