def quote(x):
    """Ensure that this value remains this value in a task graph Some values in task graph take on special meaning.
    Sometimes we want to ensure that our data is not interpreted but remains literal.

    Examples
    --------
    >>> from flash.core.serve.dag.utils_test import add
    >>> quote((add, 1, 2))
    (literal<type=tuple>,)

    """
    if istask(x) or isinstance(x, (list, dict)):
        return (literal(x),)
    return x
Ensure that this value remains this value in a task graph Some values in task graph take on special meaning.
    Sometimes we want to ensure that our data is not interpreted but remains literal.

    Examples
    --------
    >>> from flash.core.serve.dag.utils_test import add
    >>> quote((add, 1, 2))
    (literal<type=tuple>,)

    
src/flash/core/serve/dag/task.py