code: def _test_if(x):
      y = ops.Const(1)
      with ops.If(ops.GT([x, ops.Const(50)])):
          ops.Const(2, blob_out=y)
      with ops.If(ops.LT([x, ops.Const(50)])):
          ops.Const(3, blob_out=y)
          ops.stop()
          ops.Const(4, blob_out=y)
      return y
  
imports: from caffe2.python import workspace
  from caffe2.python.core import Plan, to_execution_step, Net
  from caffe2.python.task import Task, TaskGroup, final_output
  from caffe2.python.net_builder import ops, NetBuilder
  from caffe2.python.session import LocalSession
  import unittest
  import threading
label_desc: Use image node_id 5 for calling a global function with example usage: _test_if(x) and returns: y