code: def test_get_max_sum_index_raises_error(self):
      strategy = LocalOptimisation()
      indices = [(1, 2, 4), (3, 2, 1), (4, 2, 1)]
      distances_wrong = [20, 40]
  
      with raises(ValueError):
          strategy.get_max_sum_ind(indices, distances_wrong, 0, 0)
  
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 4 for calling the TestLocalMethods obj's underlying member method code with example usage: obj.test_get_max_sum_index_raises_error() without return types