A 43-year-old woman has been handed a suspended prison sentence after being found in possession of drugs.