<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def splunk(cmd, user='admin', passwd='changeme'):
 """Authenticated call to splunk"""

    return sudo('/opt/splunkforwarder/bin/splunk {c} -auth {u}:{p}'
                .format(c=cmd, u=user, p=passwd))