code: def _prevent_constant_folding(tensor, dummy_inputs):
      tensor = tf.identity(tensor)
      outputs = tf.cond(
          tf.reduce_sum(dummy_inputs) > 0,
          lambda: tensor,
          lambda: tensor,
      )
      return outputs
  
imports: from typing import List, Mapping
  import tensorflow
label_desc: Use image node_id 1 for calling a global function with example usage: _prevent_constant_folding(tensor, dummy_inputs) and returns: outputs