@staticmethod<EOL><INDENT>def map(func):<DEDENT>
def wrapper(prev, *argv, **kw):<EOL><INDENT>if prev is None:<EOL><INDENT>raise TypeError('<STR_LIT>')<EOL><DEDENT>for i in prev:<EOL><INDENT>yield func(i, *argv, **kw)<EOL><DEDENT><DEDENT>return Pipe(wrapper)<EOL>
Wrap a map function to Pipe object. Map function is a function with
        at least one argument. It is used to convert data. The first argument
        is the data to be converted. The return data from map function will
        be sent to next generator.

        :param func: The map function to be wrapped.
        :type func: function object
        :param args: The default arguments to be used for map function.
        :param kw:  The default keyword arguments to be used for map function.
        :returns: Pipe object