code: def perform_check_correlation(
      correlation_matrix: pd.DataFrame, threshold: float
  ) -> Dict[str, List[str]]:
      """Check whether selected variables are highly correlated values in the correlation matrix.
  
      Args:
          correlation_matrix: The correlation matrix for the DataFrame.
          threshold:.
  
      Returns:
          The variables that are highly correlated.
      """
  
      cols = correlation_matrix.columns
      bool_index = abs(correlation_matrix.values) >= threshold
      np.fill_diagonal(bool_index, False)
      return {
          col: cols[bool_index[i]].values.tolist()
          for i, col in enumerate(cols)
          if any(bool_index[i])
      }
  
imports: import warnings
  from typing import Dict, List, Optional, Sized
  import numpy
  import pandas
  from multimethod import multimethod
  from ydata_profiling.config import Settings
label_desc: Use image node_id 3 for calling a global function with example usage: perform_check_correlation(correlation_matrix, threshold) and returns: unknown