code: def test_mpi_send_wait_cmp():
      x = theano.tensor.matrix("x")
      y = send(x, 1, 11)
      z = x + x
      waitnode = y.owner
      sendnode = y.owner.inputs[0].owner
      addnode = z.owner
      assert (
          mpi_send_wait_cmp(sendnode, addnode) < 0
      )  # send happens first
      assert mpi_send_wait_cmp(waitnode, addnode) > 0
  
file_path: Theano/theano/tensor/tests/test_mpi.py
imports: from __future__ import absolute_import, print_function, division
  import os
  import subprocess
  from nose.plugins.skip import SkipTest
  import theano
  from theano import change_flags
  from theano.compat import PY3
  from theano.gof.sched import sort_schedule_fn
  from theano.tensor.io import send, recv, mpi_cmps, MPISend, MPISendWait, mpi_send_wait_cmp, mpi_tag_cmp, mpi_enabled
label_desc: Use image node_id 5 for calling a global function with example usage: test_mpi_send_wait_cmp() without return types