code: def testScatterMean(self):
      x = tf.constant([[1.0, 2.0], [3.0, 4.0], [5.0, 6.0]])
      idx = tf.constant([1, 0, 1])
      out = mp_ops.scatter_mean(x, idx, size=2)
      exp = tf.constant([[3.0, 4.0], [3.0, 4.0]])
      diff = tf.reduce_sum(tf.abs(out - exp))
      with self.test_session():
          # self.assertAllEqual([[3., 4.], [3., 4.]], out.eval())
          self.assertLess(diff.eval(), 1e-6)
  
file_path: euler/tf_euler/python/euler_ops/mp_ops_test.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import os
  import tensorflow
  from tf_euler.python.euler_ops import mp_ops
label_desc: Use image node_id 3 for calling the ScatterTest obj's underlying member method code with example usage: obj.testScatterMean() without return types