As the use of artificial intelligence increases, BMW has set out a code of ethics on how its employees should be utilising it.