(data)
return data
Returns the string or the original value back.

        Raises:
            ValueError: If the value is not a string.
Returns the string or the original value back.
Returns the string or the original value back .
def encode(data):
        """Returns the string or the original value back.

        Raises:
            ValueError: If the value is not a string.
        """
        if not isinstance(data, str):
            raise ValueError('Value needs to be a string.')
        return data
def encode ( data ) : if not isinstance ( data , str ) : raise ValueError ( 'Value needs to be a string.' ) return data