code: def testDistanceInvalidAxis(self):
      source_tensor = tf.constant(1.0, dtype="float32", shape=[4, 2])
      target_tensor = tf.constant(1.0, dtype="float32", shape=[4, 2])
      weights = tf.constant(1.0, dtype="float32", shape=[4, 2])
  
      distance_config = configs.DistanceConfig(sum_over_axis=2)
      with self.assertRaises(ValueError):
          distance_tensor = distances.pairwise_distance_wrapper(
              source_tensor, target_tensor, weights, distance_config
          )
          distance_tensor.eval()
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import neural_structured_learning.configs
  from neural_structured_learning.lib import distances
  import numpy
  import tensorflow
label_desc: Use image node_id 23 for calling the DistancesTest obj's underlying member method code with example usage: obj.testDistanceInvalidAxis() without return types