<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _xy_locs(mask):
 """Mask should be a set of bools from comparison with a feature layer."""

  y, x = mask.nonzero()
  return list(zip(x, y))