code: def test_map_ordered(self):
      def f(x):
          return x**2
  
      def slow_f(x):
          import time
  
          time.sleep(0.05 * x)
          return x**2
  
      data = list(range(16, 0, -1))
      reference = list(map(f, data))
  
      amr = self.view.map_async(slow_f, data)
      assert isinstance(amr, ipp.AsyncMapResult)
      # check individual elements, retrieved as they come
      # list(amr) uses __iter__
      astheycame = list(amr)
      # Ensure that results came in order
      assert astheycame == reference
      assert amr.get() == reference
  
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 8 for calling the TestLoadBalancedView obj's underlying member method code with example usage: obj.test_map_ordered() and returns: unknown, unknown