code: def commingle_loop_vars_block(block):
      for op in list(block.operations):
          for b in op.blocks:
              commingle_loop_vars_block(b)
  
          if op.op_type != "while_loop":
              continue
  
          block = op.blocks[0]
  
          for v_out, vx_in in zip(op.outputs, block.inputs):
              # Disable check as v_out is not visible in block.
              block.replace_uses_of_var_after_op(
                  anchor_op=None,
                  old_var=vx_in,
                  new_var=v_out,
                  no_check_var_visibility=True,
              )
  
          # replace block inputs
          block._block_inputs = op.outputs
  
imports: from __future__ import print_function
  from __future__ import division
  from __future__ import absolute_import
  from coremltools.converters.mil.mil.passes.pass_registry import register_pass
label_desc: Use image node_id 1 for calling a global function with example usage: commingle_loop_vars_block(block) without return types