code: def _format_function_signature(
      self,
      func: Function,
      override_name: str = None,
      add_method_bar: bool = True,
      include_parent_class: bool = True,
  ) -> str:
      parts = []
      for dec in func.decorations:
          parts.append("@{}{}\n".format(dec.name, dec.args or ""))
      if func.modifiers and "async" in func.modifiers:
          parts.append("async ")
      if self.signature_with_def:
          parts.append("def ")
      if self.signature_class_prefix and (
          func.is_function() and func.parent and func.parent.is_class()
      ):
          parts.append(func.parent.name + ".")
      parts.append((override_name or func.name))
      signature_args = format_arglist(func.args)
      if signature_args.endswith(","):
          signature_args = signature_args[:-1].strip()
  
      if (
          len(parts[-1])
          + len(signature_args)
          + (0 if not func.return_type else len(str(func.return_type)))
          > 60
      ):
          signature_args = ",\n    ".join(
              filter(
                  lambda s: s.strip() not in ("", ","),
                  (format_arglist([arg]) for arg in func.args),
              )
          )
          parts.append("(\n    " + signature_args + "\n)")
      else:
          parts.append("(" + signature_args + ")")
  
      if func.return_type:
          parts.append(" -> {}".format(func.return_type))
      result = "".join(parts)
      if add_method_bar and isinstance(func.parent, Class):
          result = "\n".join(
              " | " + line for line in result.split("\n")
          )
          if include_parent_class:
              bases = ", ".join(map(str, func.parent.bases))
              if func.parent.metaclass:
                  bases += ", metaclass=" + str(func.parent.metaclass)
              if bases:
                  class_signature = f"class {func.parent.name}({bases})"
              else:
                  class_signature = f"class {func.parent.name}"
              result = f"{class_signature}:\n | ...\n{result}"
      return result
  
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 1 for calling the AllenNlpRenderer obj's underlying member method code with example usage: obj._format_function_signature(func, override_name, add_method_bar, include_parent_class) and returns: result