def lambda_solid(name=None, inputs=None, output=None, description=None):
output = output or OutputDefinition()<EOL>if callable(name):<EOL><INDENT>check.invariant(inputs is None)<EOL>check.invariant(description is None)<EOL>return _LambdaSolid(output=output)(name)<EOL><DEDENT>return _LambdaSolid(name=name, inputs=inputs, output=output, description=description)<EOL>
(decorator) Create a simple solid.

    This shortcut allows the creation of simple solids that do not require
    configuration and whose implementations do not require a context.

    Lambda solids take inputs and produce a single output. The body of the function
    should return a single value.

    Args:
        name (str): Name of solid.
        inputs (list[InputDefinition]): List of inputs.
        output (OutputDefinition): The output of the solid. Defaults to ``OutputDefinition()``.
        description (str): Solid description.

    Examples:

        .. code-block:: python

            @lambda_solid
            def hello_world():
                return 'hello'

            @lambda_solid(inputs=[InputDefinition(name='foo')])
            def hello_world(foo):
                return foo