code: def test_imap_return_exceptions(self):
      view = self.view
  
      source = count()
  
      def fail_on_even(n):
          if n % 2 == 0:
              raise ValueError("even!")
          return n
  
      gen = view.imap(fail_on_even, range(5), return_exceptions=True)
      for i, r in enumerate(gen):
          if i % 2 == 0:
              assert isinstance(r, error.RemoteError)
          else:
              assert r == i
  
imports: import time
  from itertools import count
  import pytest
  import ipyparallel
  from ipyparallel import error
  from .clienttest import ClusterTestCase, crash, raises_remote
label_desc: Use image node_id 13 for calling the TestLoadBalancedView obj's underlying member method code with example usage: obj.test_imap_return_exceptions() and returns: n