code: def warn_correlation(correlation_name: str, error: str) -> None:
      warnings.warn(
          f"""There was an attempt to calculate the {correlation_name} correlation, but this failed.
  To hide this warning, disable the calculation
  (using `df.profile_report(correlations={{\"{correlation_name}\": {{\"calculate\": False}}}})`
  If this is problematic for your use case, please report this as an issue:
  https://github.com/ydataai/ydata-profiling/issues
  (include the error message: '{error}')"""
      )
  
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 1 for calling a global function with example usage: warn_correlation(correlation_name, error) without return types