def execute_command(ssh_client, command,verbose=False):
    """Runs a command on a remote host.

    Used to execute scripts on the cluster from local controllers.
    Only the stderr and stdout from the scripts are recorded, 
    return values/exit statuses are not.

    Args:
        ssh_client: A paramiko SSHClient instance that describes
            the connection to the remote host.
        command: A string command to be run on the remote host.

    Returns:
        A string concatenation of the stdout and stderr
        of the command. Will not provide useful information
        if command does not output anything to stderr or
        stdout.
    """
    if verbose:
        print("Executing {}".format(command))
    stdin, stdout, stderr = ssh_client.exec_command(command)
    result = stdout.read().decode("utf-8")
    result += stderr.read().decode("utf-8")

    return result