code: def test_zip_clusters_and_values(seq, delta):
      arr = np.array(seq)
  
      try:
          clusts = find_clusters_1d_break_dist(arr, delta)
      except:  # exceptions are tested in test_find_clusters_1d_break_dist
          return
  
      with pytest.raises(TypeError):  # second param must be np.array
          zip_clusters_and_values(clusts, seq)
  
      clusts_w_vals = zip_clusters_and_values(clusts, arr)
      assert len(clusts_w_vals) == len(clusts)
  
      for tup in clusts_w_vals:
          assert len(tup) == 2
          ind, vals = tup
          assert len(ind) > 0
          assert len(ind) == len(vals)
          assert np.array_equal(arr[ind], vals)
  
file_path: pdftabextract/tests/test_clustering.py
imports: import pytest
  from hypothesis import given
  import hypothesis.strategies
  import numpy
  from scipy.stats import chisquare
  from pdftabextract.clustering import find_clusters_1d_break_dist, zip_clusters_and_values, calc_cluster_centers_1d, array_match_difference_1d, find_best_matching_array, adjust_bad_positions
label_desc: Use image node_id 2 for calling a global function with example usage: test_zip_clusters_and_values(seq, delta) without return types