code: def remove_from_control_consumers(control_consumer_ops, op_to_remove):
      """
      Remove the op_to_remove from the control inputs for each op in "control_consumer_ops".
  
      Args:
          control_consumer_ops (List[Operation]): Ops that have op_to_remove as their current control inputs
          op_to_remove (Operation): The op to be removed
      """
      for control_consumer_op in control_consumer_ops:
          control_inputs = list(control_consumer_op.control_inputs)
          size = len(control_inputs)
          control_inputs.remove(op_to_remove)
          assert size - 1 == len(control_inputs)
          control_consumer_op._remove_all_control_inputs()
          control_consumer_op._add_control_inputs(control_inputs)
  
file_path: autodist/autodist/kernel/common/utils.py
imports: from collections import deque
  from tensorflow.core.framework.attr_value_pb2 import AttrValue
  from tensorflow.python.util.compat import as_bytes
  from autodist.const import AUTODIST_REPLICA_PREFIX, COLOCATION_PREFIX
label_desc: Use image node_id 13 for calling a global function with example usage: remove_from_control_consumers(control_consumer_ops, op_to_remove) without return types