<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def md5sum(filename, use_sudo=False):
 """Return md5sum of remote file"""

    runner = sudo if use_sudo else run
    with hide('commands'):
        return runner("md5sum '{}'".format(filename)).split()[0]