code: def testEditDistanceNormalized(self):
      hypothesis_indices = [[0, 0], [0, 1], [1, 0], [1, 1]]
      hypothesis_values = [0, 1, 1, -1]
      hypothesis_shape = [2, 2]
      truth_indices = [[0, 0], [1, 0], [1, 1]]
      truth_values = [0, 1, 1]
      truth_shape = [2, 2]
      expected_output = [1.0, 0.5]
  
      self._testEditDistance(
          hypothesis=(
              hypothesis_indices,
              hypothesis_values,
              hypothesis_shape,
          ),
          truth=(truth_indices, truth_values, truth_shape),
          normalize=True,
          expected_output=expected_output,
      )
  
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 3 for calling the EditDistanceTest obj's underlying member method code with example usage: obj.testEditDistanceNormalized() without return types