code: def selection_rate(y):
      return np.round(
          np.sum((y == 1)) / y.shape[0],
          4,
      )
  
imports: import numpy
label_desc: Use image node_id 2 for calling a global function with example usage: selection_rate(y) and returns: np