code: def _slice_to_bounds(slice_):
      if slice_ is None:
          return 0, np.inf
  
      if slice_.start is None:
          l = 0
      else:
          l = slice_.start
  
      if slice_.stop is None:
          u = np.inf
      else:
          u = slice_.stop
  
      return l, u
  
label_desc: Use image node_id 2 for calling a global function with example usage: _slice_to_bounds(slice_) and returns: l,  u, int,  np