This gyroscope is supported at its
center of mass, so it experiences no gravitational torque and can spin
stably in any orientation.
If you bring the extended shaft of
the gyroscope in
contact with the wire spiral, or a pencil or whatever, the torque due
to the
frictional force increases the normal force between the shaft and the
wire, and the gyroscope rolls along the contours of the wire.