non compos mentis

definition: not of sound mind, memory, or understanding
example:
speech part: adjective
synonyms: of unsound mind

How non compos mentis is being used?