code: def testComputeAverageLossInvalidSampleWeights(self):
      with self.assertRaisesIncompatibleShapesError(
          (ValueError, errors_impl.InvalidArgumentError)
      ):
          nn_impl_distribute.compute_average_loss(
              [2.5, 6.2, 5.0],
              sample_weight=[0.2, 0.8],
              global_batch_size=10,
          )
  
imports: from absl.testing import parameterized
  from tensorflow.python.distribute import combinations
  from tensorflow.python.distribute import strategy_combinations
  from tensorflow.python.eager import context
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import errors
  from tensorflow.python.framework import errors_impl
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import nn_impl_distribute
  from tensorflow.python.platform import test
label_desc: Use image node_id 10 for calling the LossUtilitiesTest obj's underlying member method code with example usage: obj.testComputeAverageLossInvalidSampleWeights() without return types