code: def _masked_coo(A, mask):
      row = A.row[mask]
      col = A.col[mask]
      data = A.data[mask]
      return coo_matrix(
          (data, (row, col)), shape=A.shape, dtype=A.dtype
      )
  
imports: from __future__ import division, print_function, absolute_import
  from .coo import coo_matrix
label_desc: Use image node_id 4 for calling a global function with example usage: _masked_coo(A, mask) and returns: coo_matrix