code: def autodoc_skip_member(app, what, name, obj, skip, options):
      # we hide something deliberately
      if getattr(obj, "__HIDE_SPHINX_DOC__", False):
          return True
      if name == "__init__":
          if obj.__doc__ and skip:
              # include_init_with_doc doesn't work well for decorated init
              # https://github.com/sphinx-doc/sphinx/issues/4258
              return False
      # Hide some names that are deprecated or not intended to be used
      if name in _DEPRECATED_NAMES:
          return True
  
      if name in [
          "__iter__",
          "__len__",
          "reset_state",
          "get_data",
          "size",
      ]:
          # skip these methods with empty docstring
          if not obj.__doc__ and inspect.isfunction(obj):
              # https://stackoverflow.com/questions/3589311/get-defining-class-of-unbound-method-object-in-python-3
              cls = getattr(
                  inspect.getmodule(obj),
                  obj.__qualname__.split(".<locals>", 1)[0].rsplit(
                      ".", 1
                  )[0],
              )
              if issubclass(cls, tensorpack.DataFlow):
                  return True
      return None
  
file_path: tensorpack/docs/conf.py
imports: import sys, os, re
  import mock
  import inspect
  from sphinx.domains import Domain
  import tensorpack
  import sphinx_rtd_theme
label_desc: Use image node_id 2 for calling a global function with example usage: autodoc_skip_member(app, what, name, obj, skip, options) and returns: None, True, True, False, True