code: public SDVariable avgPooling2d(SDVariable input, Pooling2DConfig pooling2DConfig) {
          AvgPooling2D avgPooling2D = AvgPooling2D.builder()
                  .input(input)
                  .sameDiff(sameDiff())
                  .config(pooling2DConfig)
                  .build();
  
          return avgPooling2D.outputVariable();
      }
docs: Average pooling 2d operation.
  
  @param input           the inputs to pooling
  @param pooling2DConfig the configuration
  @return