code: def testPoolingIllegalRatioForBatch(self):
      with self.cached_session() as _:
          with self.assertRaises(errors.UnimplementedError):
              result = nn_ops.gen_nn_ops.fractional_avg_pool(
                  np.zeros([3, 30, 50, 3]), [2, 3, 1.5, 1], True, True
              )
              self.evaluate(result)
  
imports: import math
  import numpy
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import errors
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import gen_nn_ops
  from tensorflow.python.ops import gradient_checker
  from tensorflow.python.ops import nn_ops
  import tensorflow.python.ops.nn_grad
  from tensorflow.python.platform import test
label_desc: Use image node_id 15 for calling the FractionalAvgTest obj's underlying member method code with example usage: obj.testPoolingIllegalRatioForBatch() without return types