Whenever any person shall allow his or her baggage or property to remain in any inn or hotel, after leaving it as a guest, and after the relation of innkeeper and guest between the guest and the proprietors of the inn or hotel has ceased, or shall forward it to the inn or hotel before becoming a guest thereof, and it shall be received into the inn or hotel, an innkeeper may, at his or her option, hold the baggage or property at the owner's risk.