A german shepherd is being trained in a prison.