code: def _format_classdef_signature(self, cls: Class) -> str:
      code = ""
      if cls.decorations:
          for dec in cls.decorations:
              code += "@{}{}\n".format(dec.name, dec.args or "")
      bases = ", ".join(map(str, cls.bases))
      if cls.metaclass:
          bases += ", metaclass=" + str(cls.metaclass)
      if bases:
          code += "class {}({})".format(cls.name, bases)
      else:
          code += "class {}".format(cls.name)
      if self.signature_python_help_style:
          code = cls.path() + " = " + code
      members = {m.name: m for m in cls.members}
      if self.classdef_render_init_signature_if_needed and (
          "__init__" in members
      ):
          code += ":\n" + self._format_function_signature(
              members["__init__"],
              add_method_bar=True,
              include_parent_class=False,
          )
      return code
  
imports: import argparse
  import logging
  import os
  import re
  import sys
  from collections import OrderedDict
  from dataclasses import dataclass
  from enum import Enum
  from multiprocessing import Pool, cpu_count
  from pathlib import Path
  from typing import List, Optional, Tuple
  import docspec
  from docspec import ApiObject, Class, Data, Function, Indirection, Module
  from docspec_python import format_arglist
  from pydoc_markdown import Processor, PydocMarkdown, Resolver
  from pydoc_markdown.contrib.loaders.python import PythonLoader
  from pydoc_markdown.contrib.renderers.markdown import MarkdownRenderer
label_desc: Use image node_id 3 for calling the AllenNlpRenderer obj's underlying member method code with example usage: obj._format_classdef_signature(cls) and returns: code