code: def test_target_ordering(self):
      self.minimum_engines(4)
      ids_in_order = self.client.ids
      dv = self.client.real_direct_view(ids_in_order)
  
      dv.scatter("rank", ids_in_order, flatten=True, block=True)
      assert dv["rank"] == ids_in_order
  
      view = self.client.broadcast_view(
          ids_in_order, is_coalescing=True
      )
      assert view["rank"] == ids_in_order
  
      view = self.client.broadcast_view(
          ids_in_order[::-1], is_coalescing=True
      )
      assert view["rank"] == ids_in_order[::-1]
  
      view = self.client.broadcast_view(
          ids_in_order[::2], is_coalescing=True
      )
      assert view["rank"] == ids_in_order[::2]
  
      view = self.client.broadcast_view(
          ids_in_order[::-2], is_coalescing=True
      )
      assert view["rank"] == ids_in_order[::-2]
  
file_path: ipyparallel/ipyparallel/tests/test_view_broadcast.py
imports: import pytest
  from .None import test_view
label_desc: Use image node_id 1 for calling the TestBroadcastViewCoalescing obj's underlying member method code with example usage: obj.test_target_ordering() without return types