code: def convert_Permutate(params):
      gb = onnx_helper.GraphBuilder()
      # indices_name = params.context.get_name(func.indices)
      indices_name = params.context.add_const(
          params.func.indices, "indices"
      )  # XXX
      if params.func.inv:
          empty = params.context.add_const(
              np.zeros(dtype=np.int64, shape=params.func.indices.shape),
              "empty",
          )
          r = params.context.add_const(
              np.arange(len(params.func.indices), dtype=np.int64),
              "range",
          )
          op = (
              "ScatterElements"
              if params.opset_version == 11
              else "Scatter"
          )
          indices_name = gb.op(op, [empty, indices_name, r])
      params.input_names.append(indices_name)
      gb.op_output_named(
          "Gather",
          params.input_names,
          params.output_names,
          axis=params.func.axis,
      )
      return gb.nodes()
  
file_path: chainer/tests/onnx_chainer_tests/functions_tests/test_rnn.py
imports: import chainer
  import chainer.functions
  import chainer.links
  from chainer import testing
  import numpy
  from onnx_chainer import onnx_helper
  from onnx_chainer.testing import input_generator
  from onnx_chainer_tests.helper import ONNXModelTest
label_desc: Use image node_id 1 for calling a global function with example usage: convert_Permutate(params) and returns: gb