code: def _testEditDistanceST(
      self,
      hypothesis_st,
      truth_st,
      normalize,
      expected_output,
      expected_shape,
      expected_err_re=None,
  ):
      edit_distance = array_ops.edit_distance(
          hypothesis=hypothesis_st, truth=truth_st, normalize=normalize
      )
  
      if expected_err_re is None:
          self.assertEqual(edit_distance.get_shape(), expected_shape)
          output = self.evaluate(edit_distance)
          self.assertAllClose(output, expected_output)
      else:
          with self.assertRaisesOpError(expected_err_re):
              self.evaluate(edit_distance)
  
imports: import numpy
  from tensorflow.python.eager import def_function
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import errors
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import sparse_tensor
  from tensorflow.python.ops import array_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 1 for calling the EditDistanceTest obj's underlying member method code with example usage: obj._testEditDistanceST(hypothesis_st, truth_st, normalize, expected_output, expected_shape, expected_err_re) without return types