code: def test_map_generator(self):
      def f(x):
          return x**2
  
      data = list(range(16))
      ar = self.view.map_async(f, iter(data))
      r = ar.get()
      assert r == list(map(f, iter(data)))
  
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 4 for calling the TestLoadBalancedView obj's underlying member method code with example usage: obj.test_map_generator() and returns: unknown