code: def get_dok_mat_with_set_coords(n, coords):
      """Returns a sparse 0 matrix with the coordinates in coords set to 1."""
      A = dok_matrix((n, n))
      _set_coords_to_val(A, coords, 1)
      return A
  
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 29 for calling a global function with example usage: get_dok_mat_with_set_coords(n, coords) and returns: A