code: def _set_coords_to_val(A, coords, val):
      """Sets the indices in matrix A to value."""
      for coord in coords:
          A[coord[0], coord[1]] = val
  
imports: from __future__ import print_function
  from __future__ import division
  import numpy
  from scipy.sparse import dok_matrix
  from scipy.linalg import solve_triangular
label_desc: Use image node_id 28 for calling a global function with example usage: _set_coords_to_val(A, coords, val) without return types