In the dim room, a black dog standing in front of a white door wagged its tail back and forth on the floor.