code: def test_return_exceptions(self):
      view = self.client.load_balanced_view()
  
      def fail_on_2(n):
          if n == 2:
              raise ValueError("two!")
          return n
  
      amr = view.map(fail_on_2, range(4), return_exceptions=True)
      assert amr._return_exceptions
      rlist = list(amr)
      error = rlist[2]
      assert isinstance(error, ipp.RemoteError)
      expected = [0, 1, error, 3]
      assert list(amr) == expected
      assert amr.get() == expected
  
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 32 for calling the TestAsyncResult obj's underlying member method code with example usage: obj.test_return_exceptions() and returns: n