code: def log_normalize(data):
      """Perform log transform log(x + 1).
  
      Parameters
      ----------
      data : array_like
  
      """
      if sp.issparse(data):
          data = data.copy()
          data.data = np.log2(data.data + 1)
          return data
  
      return np.log2(data.astype(np.float64) + 1)
  
file_path: openTSNE/examples/utils.py
imports: from os.path import abspath, dirname, join
  import numpy
  import scipy.sparse
label_desc: Use image node_id 2 for calling a global function with example usage: log_normalize(data) and returns: np, data