code: def compute_corr(df, compute_method):
      """
      Compute correlations between features of given dataframe.
  
      Parameters
      ----------
      df : pd.DataFrame
          DataFrame used to compute correlations.
      compute_method : str
          Method used to compute correlations ('phik' or 'pearson').
  
      Returns
      -------
      pd.DataFrame
      """
      # Remove user warnings (when not enough values to compute correlation).
      warnings.filterwarnings("ignore")
      if compute_method == "phik":
          from phik import phik_matrix
  
          return phik_matrix(df, verbose=False)
      elif compute_method == "pearson":
          return df.corr()
      else:
          raise NotImplementedError(
              f"Not implemented correlation method : {compute_method}"
          )
  
file_path: shapash/shapash/manipulation/summarize.py
imports: import warnings
  import numpy
  import pandas
  from pandas.core.common import flatten
  from sklearn.manifold import TSNE
  from shapash.utils.transform import get_features_transform_mapping
label_desc: Use image node_id 6 for calling a global function with example usage: compute_corr(df, compute_method) and returns: phik_matrix, df