def METHOD_NAME(hostname, command):
    print(bcolors.BOLD + f"Executing the command: ssh -A {hostname} {command}" + bcolors.ENDC)
    ssh = subprocess.Popen(
        ["ssh", "-A", hostname, command], shell=False, stdout=subprocess.PIPE, stderr=subprocess.PIPE,
    )
    exitcode = ssh.wait()
    result = ssh.stdout.readlines()
    error = ssh.stderr.readlines()
    if exitcode != 0:
        print(bcolors.FAIL + f"Execute command {command} failed: {error}" + bcolors.ENDC)
        exit(exitcode)
    return result