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 run(self):
      clazz = str(self.arguments[0])
      (module_name, class_name) = clazz.rsplit(".", 1)
      m = __import__(module_name, globals(), locals(), [class_name])
      c = getattr(m, class_name)
      app = self.state.document.settings.env.app
      if "methods" in self.options:
          _, methods = self.get_members(
              app, c, ["method"], ["__init__"]
          )
          self.content = [
              f"{class_name}.{method}"
              for method in methods
              if not method.startswith("_")
          ]
      if "attributes" in self.options:
          _, attribs = self.get_members(
              app, c, ["attribute", "property"]
          )
          self.content = [
              f"~{clazz}.{attrib}"
              for attrib in attribs
              if not attrib.startswith("_")
          ]
      return super().run()
  
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 2 for calling the AutoAutoSummary obj's underlying member method code with example usage: obj.run() and returns: super