code: def get_signature_end(function):
      sig = signature(function)
      signature_end = stringify_signature(sig, show_annotation=False)
      if utils.ismethod(function):
          signature_end = signature_end.replace("(self, ", "(")
          signature_end = signature_end.replace("(self)", "()")
      return signature_end
  
file_path: autokeras/docs/keras_autodoc/get_signatures.py
imports: import inspect
  import warnings
  import black
  from sphinx.util.inspect import signature
  from sphinx.util.inspect import stringify_signature
  from .None import utils
label_desc: Use image node_id 2 for calling a global function with example usage: get_signature_end(function) and returns: signature_end