code: def _get_score_ic(pred_label: pd.DataFrame):
      """
  
      :param pred_label:
      :return:
      """
      concat_data = pred_label.copy()
      concat_data.dropna(axis=0, how="any", inplace=True)
      _ic = concat_data.groupby(level="datetime").apply(
          lambda x: x["label"].corr(x["score"])
      )
      _rank_ic = concat_data.groupby(level="datetime").apply(
          lambda x: x["label"].corr(x["score"], method="spearman")
      )
      return pd.DataFrame({"ic": _ic, "rank_ic": _rank_ic})
  
imports: import pandas
  from ..graph import ScatterGraph
  from ..utils import guess_plotly_rangebreaks
label_desc: Use image node_id 1 for calling a global function with example usage: _get_score_ic(pred_label) and returns: pd