code: def call_mock(self, *args, **kw):
      from types import FunctionType, MethodType
  
      if args and type(args[0]) in [type, FunctionType, MethodType]:
          # Appears to be a decorator, pass through unchanged
          return args[0]
      return self
  
imports: import os
  import sys
  import warnings
  import glob
  import subprocess
  from sphinx.builders.html import StandaloneHTMLBuilder
  from sphinx.ext.autodoc.mock import _MockObject
label_desc: Use image node_id 1 for calling a global function with example usage: call_mock() and returns: self, args