(Shortest import: from brian2.core.preferences import check_preference_name)
from brian2.core.preferences import check_preference_name)
Make sure that a preference name is valid. This currently checks that the name does not contain illegal characters and does not clash with method names such as “keys” or “items”.