code: def autodoc_skip_member(app, what, name, obj, skip, options):
      # we hide something deliberately
      if getattr(obj, "__HIDE_SPHINX_DOC__", False):
          return True
  
      # Hide some that are deprecated or not intended to be used
      HIDDEN = {
          "ResNetBlockBase",
          "GroupedBatchSampler",
          "build_transform_gen",
          "apply_transform_gens",
          "TransformGen",
          "apply_augmentations",
          "StandardAugInput",
          "build_batch_data_loader",
          "draw_panoptic_seg_predictions",
          "WarmupCosineLR",
          "WarmupMultiStepLR",
          "downgrade_config",
          "upgrade_config",
          "add_export_config",
      }
      try:
          if name in HIDDEN or (
              hasattr(obj, "__doc__")
              and obj.__doc__.lower().strip().startswith("deprecated")
          ):
              print("Skipping deprecated object: {}".format(name))
              return True
      except:
          pass
      return skip
  
file_path: detectron2/docs/conf.py
imports: import os
  import sys
  from unittest import mock
  from sphinx.domains import Domain
  from typing import Dict, List, Tuple
  import sphinx_rtd_theme
  from recommonmark.parser import CommonMarkParser
  import detectron2
label_desc: Use image node_id 1 for calling a global function with example usage: autodoc_skip_member(app, what, name, obj, skip, options) and returns: skip, True, True