code: def get_function_signature(function, method=True):
      signature = getattr(function, "_legacy_support_signature", None)
      if signature is None:
          signature = inspect.getargspec(function)
      defaults = signature.defaults
      if method:
          args = signature.args[1:]
      else:
          args = signature.args
      if defaults:
          kwargs = zip(args[-len(defaults) :], defaults)
          args = args[: -len(defaults)]
      else:
          kwargs = []
      st = "%s.%s(" % (function.__module__, function.__name__)
      for a in args:
          st += str(a) + ", "
      for a, v in kwargs:
          if isinstance(v, str):
              v = "'" + v + "'"
          st += str(a) + "=" + str(v) + ", "
      if kwargs or args:
          return st[:-2] + ")"
      else:
          return st + ")"
  
imports: from __future__ import print_function
  from __future__ import unicode_literals
  import re
  import inspect
  import os
  import shutil
  import sys
  import rl
  import rl.core
  import rl.processors
  import rl.agents
label_desc: Use image node_id 3 for calling a global function with example usage: get_function_signature(function, method) and returns: unknown, unknown