docstr: Tests whether the combinations are summed correctly.
docstr_tok: ["Tests","whether","the","combinations","are","summed","correctly","."]
code: def test_sum_distances(self, setup_input):
      """
      Tests whether the combinations are summed correctly.
      """
      strategy = LocalOptimisation()
  
      dist_matr = strategy.compute_distance_matrix(
          setup_input, 6, 2, num_groups=None, local_optimization=True
      )
      indices = (1, 3, 2)
      distance = strategy.sum_distances(indices, dist_matr)
  
      expected = 10.47
      assert_allclose(distance, expected, rtol=1e-2)
  
imports: from SALib.sample.morris import SampleMorris, LocalOptimisation, BruteForce
  from SALib.sample.morris.morris import _sample_morris
  from SALib.util import read_param_file
  import numpy
  from numpy.testing import assert_equal, assert_allclose
  import numpy.random
  import pytest
  from pytest import fixture, raises
label_desc: Use image node_id 1 for calling the TestLocalMethods obj's underlying member method code with example usage: obj.test_sum_distances(setup_input) without return types