code: def check_mask(db, out, mask=(1, 0, 1)):
      for idx, line in enumerate(db):
          target, vector = line[0], line[1:]
          if (mask == np.bitwise_and(mask, vector)).all():
              if target == 1:
                  out[idx] = 1
      return out
  
label_desc: Use image node_id 1 for calling a global function with example usage: check_mask(db, out, mask) and returns: out