<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def sink(wrapped):
 """Creates an SPL operator with a single input port. A SPL operator with a single input port and no output ports. For each tuple on the input port the decorated function is called passing the contents of the tuple. .. deprecated:: 1.8 Recommended to use :py:class:`@spl.for_each <for_each>` instead. """

    if not inspect.isfunction(wrapped):
        raise TypeError('A function is required')

    return _wrapforsplop(_OperatorType.Sink, wrapped, 'position', False)