class_docstr: Create a summary for methods and attributes (autosummary).
  
  See https://stackoverflow.com/questions/20569011/python-sphinx-autosummary-automated-listing-of-member-functions
class_docstr_tok: ["Create","a","summary","for","methods","and","attributes","(","autosummary",")",".","See","https",":","\/\/stackoverflow.com\/questions\/20569011\/python-sphinx-autosummary-automated-listing-of-member-functions"]
code: def get_members(app, obj, typ, include_public=None):
      if not include_public:
          include_public = []
      items = []
      for name in sorted(obj.__dict__.keys()):
          try:
              documenter = get_documenter(
                  app, safe_getattr(obj, name), obj
              )
          except AttributeError:
              continue
          if documenter.objtype in typ:
              items.append(name)
      public = [
          x
          for x in items
          if x in include_public or not x.startswith("_")
      ]
      return public, items
  
file_path: distributed/docs/source/conf.py
imports: from __future__ import annotations
  from docutils.parsers.rst import directives
  from sphinx.ext.autosummary import Autosummary, get_documenter
  from sphinx.util.inspect import safe_getattr
  import distributed
label_desc: Use image node_id 1 for calling the AutoAutoSummary obj's underlying member method code with example usage: obj.get_members(app, obj, typ, include_public) and returns: public,  items