code: def sign_round_up(X):
      """
      This should do the right thing for both real and complex matrices.
  
      From Higham and Tisseur:
      "Everything in this section remains valid for complex matrices
      provided that sign(A) is redefined as the matrix (aij / |aij|)
      (and sign(0) = 1) transposes are replaced by conjugate transposes."
  
      """
      Y = X.copy()
      Y[Y == 0] = 1
      Y /= np.abs(Y)
      return Y
  
file_path: scipy/scipy/sparse/linalg/_onenormest.py
imports: import numpy
  from scipy.sparse.linalg import aslinearoperator
label_desc: Use image node_id 3 for calling a global function with example usage: sign_round_up(X) and returns: Y