code: def test_iter_error(self):
      amr = self.client[:].map_async(lambda x: 1 / (x - 2), range(5))
      # iterating through failing AMR should raise RemoteError
      with raises_remote(ZeroDivisionError):
          list(amr)
      # so should get
      with raises_remote(ZeroDivisionError):
          amr.get()
      amr.wait(10)
      # test iteration again after everything is local
      with raises_remote(ZeroDivisionError):
          list(amr)
  
imports: import os
  import time
  from datetime import datetime
  import pytest
  from IPython.utils.io import capture_output
  import ipyparallel
  from ipyparallel import error
  from .clienttest import ClusterTestCase, raises_remote
label_desc: Use image node_id 10 for calling the TestAsyncResult obj's underlying member method code with example usage: obj.test_iter_error() without return types