code: def _pool_flops(graph, node):
      """Common code which compute flops for pooling operations."""
      # compute flops for average and max pooling
      _verify_conv_data_format(node)
      #
      # Pooling declaration:
      #   Inputs:
      #     - value
      #   Outputs:
      #     - output
      #   Attributes:
      #     - ksize
      #     - strides
      #     - padding
      #     - data_format
      #
      # Pooling implemetation:
      out_shape = graph_util.tensor_shape_from_node_def_name(
          graph, node.name
      )
      out_shape.assert_is_fully_defined()
      kernel_shape = list(node.attr["ksize"].list.i)
      kernel_area = _list_product(kernel_shape)
      return ops.OpStats(
          "flops", kernel_area * out_shape.num_elements()
      )
  
imports: import numpy
  from tensorflow.python.framework import graph_util
  from tensorflow.python.framework import ops
label_desc: Use image node_id 36 for calling a global function with example usage: _pool_flops(graph, node) and returns: ops