def METHOD_NAME(self, command) -> str:
    """
    Takes a command as an argument, executes it on the remote shell, and returns the output
    :param command: The command to execute on the remote shell
    :return: The output of the command.
    """
    # Execute the command and gather errors and output
    _, stdout, stderr = self.connection.exec_command(command + "\n")
    output = stdout.read().decode('utf-8')
    if stderr:
        # Error was present, add message to output
        output += stderr.read().decode('utf-8')
    # Close connection and return output
    self.connection.close()
    return output