code: def patch_sklearn():
      from sklearn.ensemble._gb import BaseGradientBoosting
      from sklearn.utils.metaestimators import _BaseComposition
  
      # Remove inherited API doc to avoid sphinx's duplicate object description error
      BaseGradientBoosting.feature_importances_.__doc__ = None
  
      # Avoid "no attribute 'steps'" for sksurv.meta.Stacking and its subclasses
      _BaseComposition.steps = []
  
file_path: scikit-survival/doc/conf.py
imports: from datetime import datetime
  from importlib.metadata import version
  import inspect
  import os
  from pathlib import Path
  import re
  import sys
  from nbconvert.preprocessors import Preprocessor
  import nbsphinx
  import sksurv
label_desc: Use image node_id 3 for calling a global function with example usage: patch_sklearn() without return types