code: def _py2intround(a):
      
  
      data = np.asanyarray(a)
      value = np.where(data >= 0, np.floor(data + 0.5),
                       np.ceil(data - 0.5)).astype(int)
  
      if not hasattr(a, '__iter__'):
          value = np.asscalar(value)
  
      return value
docs: Round the input to the nearest integer.
  
      If two integers are equally close, rounding is done away from 0.