code: def pos_recipr(X):
      """Return element-wise reciprocal of array, setting `X`<=0 to 0
  
      Return the reciprocal of an array, setting all entries less than or
      equal to 0 to 0. Therefore, it presumes that X should be positive in
      general.
  
      Parameters
      ----------
      X : array-like
  
      Returns
      -------
      rX : array
         array of same shape as `X`, dtype np.float64, with values set to
         1/X where X > 0, 0 otherwise
      """
      X = np.asarray(X)
      out = np.zeros(X.shape)
      gt_0 = X > 0
      out[gt_0] = 1.0 / X[gt_0]
      return out
  
imports: import numpy
  import scipy.linalg
label_desc: Use image node_id 3 for calling a global function with example usage: pos_recipr(X) and returns: out