Dogs are a valued part of millions of households worldwide. They also serve many functions in human societies from herding livestock to detecting drugs, explosives, or illegal …