code: def process_signature(
      app, what, name, obj, options, signature, return_annotation
  ):
      if signature:
          # replace Mock function names
          signature = re.sub(
              "<Mock name='([^']+)'.*>", "\g<1>", signature
          )
          signature = re.sub("tensorflow", "tf", signature)
  
          # add scope name to layer signatures:
          if hasattr(obj, "use_scope"):
              if obj.use_scope:
                  signature = (
                      signature[0]
                      + "variable_scope_name, "
                      + signature[1:]
                  )
              elif obj.use_scope is None:
                  signature = (
                      signature[0]
                      + "[variable_scope_name,] "
                      + signature[1:]
                  )
      # signature: arg list
      return signature, return_annotation
  
file_path: tensorpack/docs/conf.py
imports: import sys, os, re
  import mock
  import inspect
  from sphinx.domains import Domain
  import tensorpack
  import sphinx_rtd_theme
label_desc: Use image node_id 1 for calling a global function with example usage: process_signature(app, what, name, obj, options, signature, return_annotation) and returns: signature,  return_annotation