code: def stair_func(x: np.ndarray, thresholds: np.ndarray) -> np.ndarray:
      return np.heaviside(
          x[:, None] - np.floor(thresholds)[None, :], 0
      ).sum(1)
  
imports: from collections import deque
  import operator
  import itertools
  from typing import Optional, List, Tuple
  import numpy
  import warnings
label_desc: Use image node_id 1 for calling a global function with example usage: stair_func(x, thresholds) and returns: np