Mohamed Ahmed Omer, who abandoned his wife in Sudan before returning to Australia with their young children, was handed a four-year sentence.