The same way fables teach children to behave, novels and stories could “teach” robots it’s not okay to harm people.