code: def sign(a: np.array) -> np.array:
      return np.nan_to_num(a / np.abs(a), 0)
  
file_path: scattertext/scattertext/termscoring/g2.py
imports: import numpy
  import pandas
  from scipy.stats import chi2
  from statsmodels.stats.multitest import fdrcorrection
  from scattertext.termscoring.CorpusBasedTermScorer import CorpusBasedTermScorer
label_desc: Use image node_id 2 for calling a global function with example usage: sign(a) and returns: np