code: def max_2x2pool(incoming, name):
      """
      max pooling on 2 dims.
      :param incoming:
      :param name:
      :return:
      """
      with tf.compat.v1.variable_scope(name):
          return tf.nn.max_pool2d(
              input=incoming,
              ksize=(1, 2, 2, 1),
              strides=(1, 2, 2, 1),
              padding="SAME",
          )
  
file_path: attention-ocr/aocr/model/cnn.py
imports: from __future__ import absolute_import
  import numpy
  import tensorflow
label_desc: Use image node_id 2 for calling a global function with example usage: max_2x2pool(incoming, name) and returns: tf