code: def cli_cmd_to_string(args):
      
      if isinstance(args, basestring):
          # Return directly if it's already a string.
          return args
      return ' '.join([pipes.quote(arg) for arg in args])
docs: Converts a cmd arg list to string.
  
      Args:
          args: list of strings, the arguments of a command.
  
      Returns:
          String representation of the command.