def METHOD_NAME(self, cmd):
    remaining_reties = ARM_MAX_RETRY
    while remaining_reties > 0:
        remaining_reties -= 1
        sleep(ARM_RETRY_INTERVAL)
        self.cmd(cmd)
    raise AssertionError("Retry chance exhausted.")