<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def pprofile(line, cell=None):
 """ Profile line execution. """

    if cell is None:
        # TODO: detect and use arguments (statistical profiling, ...) ?
        return run(line)
    return _main(
        ['%%pprofile', '-m', '-'] + shlex.split(line),
        io.StringIO(cell),
    )