Another way to say "a necklace is used for vanity" is "a necklace can be worn to satisfy vain desires."