code: 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))
  
imports: import numpy
  from pysc2.agents import base_agent
  from pysc2.lib import actions
  from pysc2.lib import features
label_desc: Use image node_id 1 for calling a global function with example usage: _xy_locs(mask) and returns: list