<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def cli_cmd_to_string(args):
 """Converts a cmd arg list to string. Args: args: list of strings, the arguments of a command. Returns: String representation of the command. """

    if isinstance(args, basestring):
        # Return directly if it's already a string.
        return args
    return ' '.join([pipes.quote(arg) for arg in args])