code: def learner_pred_fn_docstring(f_name: str, shap: bool = False) -> str:
      shap_docstring = (
          """
      apply_shap : boolean, optional
          Creates a new output column named "shap" with SHAP values.
          SHAP values can be used for interpretability and feature importances.
          For more information, see https://github.com/slundberg/shap
  
      """
          if shap
          else ""
      )
  
      docstring = """
      Predict function from %s
  
      Parameters
      ----------
      new_df : pandas.DataFrame
          A Pandas' DataFrame with the same columns as the one
          used to train the learner.
      %s
      Returns
      -------
      df : pandas.DataFrame
          A `new_df`-like DataFrame with the same columns as the
          input `new_df` plus a column with predictions from the trained learner.
  
      """ % (
          f_name,
          shap_docstring,
      )
  
      return docstring
  
label_desc: Use image node_id 1 for calling a global function with example usage: learner_pred_fn_docstring(f_name, shap) and returns: docstring