code: def array_match_difference_1d(a, b):
      """Return the summed difference between the elements in a and b."""
      if len(a) != len(b):
          raise ValueError("Both arrays must have the same length")
  
      if len(a) == 0:
          raise ValueError("Arrays must be filled")
  
      if type(a) is not np.ndarray:
          a = np.array(a)
      if type(b) is not np.ndarray:
          b = np.array(b)
  
      return np.sum(np.abs(a - b))
  
file_path: pdftabextract/pdftabextract/clustering.py
imports: import itertools
  import numpy
  from scipy.stats import chisquare
  from pdftabextract import logger
  from pdftabextract.common import fill_array_a_with_values_from_b, sorted_by_attr, flatten_list, update_text_dict_dim, DIRECTION_HORIZONTAL, DIRECTION_VERTICAL
label_desc: Use image node_id 10 for calling a global function with example usage: array_match_difference_1d(a, b) and returns: np