code: def pd_series_to_trace_with_diff(
      s_pps: pd.Series, train_or_test: str, name: str, diffs: pd.Series
  ):
      """Create bar plotly bar trace out of pandas Series, with difference shown in percentages."""
      diffs_text = (
          "("
          + diffs.apply(
              format_percent, floating_point=0, add_positive_prefix=True
          )
          + ")"
      )
      text = diffs_text + "<br>" + s_pps.round(2).astype(str)
      return go.Bar(
          x=s_pps.index,
          y=s_pps,
          name=name,
          marker_color=colors.get(train_or_test),
          text="<b>" + text + "</b>",
          textposition="outside",
      )
  
file_path: deepchecks/deepchecks/core/check_utils/feature_label_correlation_utils.py
imports: from typing import Optional, Tuple
  import numpy
  import pandas
  import plotly.graph_objects
  import deepchecks.ppscore
  from deepchecks.utils.plot import DEFAULT_DATASET_NAMES, colors
  from deepchecks.utils.strings import format_percent
  from deepchecks.utils.typing import Hashable
label_desc: Use image node_id 3 for calling a global function with example usage: pd_series_to_trace_with_diff(s_pps, train_or_test, name, diffs) and returns: go