code: def _binary_per_element_op_flops(graph, node, ops_per_element=1):
      """Common code which compute flops for binary operations."""
      out_shape = graph_util.tensor_shape_from_node_def_name(
          graph, node.name
      )
      out_shape.assert_is_fully_defined()
      return ops.OpStats(
          "flops", out_shape.num_elements() * ops_per_element
      )
  
imports: import numpy
  from tensorflow.python.framework import graph_util
  from tensorflow.python.framework import ops
label_desc: Use image node_id 13 for calling a global function with example usage: _binary_per_element_op_flops(graph, node, ops_per_element) and returns: ops