code: def as_funcnode(name, rename_attributes=None):
      """The target function fakes FunctionNode
  
      The target function is overwrapped to connect variable node by acting
      function node. Expected to be used as decorator. More detail, see
      ``fake_as_funcnode`` documentation.
  
      Example:
  
         >>> @onnx_chainer.replace_func.as_funcnode(
         ...     'CustomNode', rename_attributes=[(1, 'value'), ('c', 'y')])
         ... def func(x, a, b, c=1, d=2): pass
  
      Args:
          name (str): function name. This name is used for what ONNX operator
              to be assigned.
          rename_attributes (list or tuple): rename attribute name, set list
              of ``tuple(index_of_args, new_name)`` or
              ``tuple(kwargs_name, new_name)``
      """
  
      def _wrapper(fn):
          return fake_as_funcnode(
              fn, name, rename_attributes=rename_attributes
          )
  
      return _wrapper
  
file_path: chainer/onnx_chainer/replace_func.py
imports: import inspect
  import chainer
label_desc: Use image node_id 2 for calling a global function with example usage: as_funcnode(name, rename_attributes) and returns: _wrapper, fake_as_funcnode