@staticmethod<EOL><INDENT>def expression(value):<DEDENT>
if isinstance(value, Expression):<EOL><INDENT>return Expression(value._type, value._value)<EOL><DEDENT>if hasattr(value, '<STR_LIT>'):<EOL><INDENT>sj = value.spl_json()<EOL>return Expression(sj['<STR_LIT:type>'], sj['<STR_LIT:value>'])<EOL><DEDENT>return Expression('<STR_LIT>', value)<EOL>
Create an SPL expression.

        Args:
            value: Expression as a string or another `Expression`. If value is an instance of `Expression` then a new instance is returned containing the same type and value.

        Returns:
            Expression: SPL expression from `value`.