@classmethod<EOL><INDENT>def from_elements(cls, items=None):<DEDENT>
node = cls()<EOL>if items is None:<EOL><INDENT>node.items = []<EOL><DEDENT>else:<EOL><INDENT>node.items = [<EOL>(const_factory(k), const_factory(v) if _is_const(v) else v)<EOL>for k, v in items.items()<EOL>if _is_const(k)<EOL>]<EOL><DEDENT>return node<EOL>
Create a :class:`Dict` of constants from a live dictionary.

        :param items: The items to store in the node.
        :type items: dict

        :returns: The created dictionary node.
        :rtype: Dict