code: def recipr0(X):
      """Return element-wise reciprocal of array, `X`==0 -> 0
  
      Return the reciprocal of an array, setting all entries equal to 0 as 0. It
      does not assume that X should be positive in general.
  
      Parameters
      ----------
      X : array-like
  
      Returns
      -------
      rX : array
      """
      X = np.asarray(X)
      out = np.zeros(X.shape)
      ne_0 = X != 0
      out[ne_0] = 1.0 / X[ne_0]
      return out
  
imports: import numpy
  import scipy.linalg
label_desc: Use image node_id 4 for calling a global function with example usage: recipr0(X) and returns: out