code: def libra2dgl_set_lr(gdt_key, gdt_value, lrtensor, nc, Nn):
      """
      This function invokes C/C++ code for pre-processing Libra output.
      To prepare the graph partitions for DistGNN input, this function sets the leaf
      and root (1-level tree) among the split copies (across different partitions)
      of a node from input graph.
      Parameter details are present in dgl/src/array/libra_partition.cc
      """
      _CAPI_DGLLibra2dglSetLR(
          to_dgl_nd(gdt_key),
          to_dgl_nd(gdt_value),
          to_dgl_nd_for_write(lrtensor),
          nc,
          Nn,
      )
  
imports: from __future__ import absolute_import
  from .None import backend, ndarray
  from ._ffi.function import _init_api
  from .base import DGLError
label_desc: Use image node_id 25 for calling a global function with example usage: libra2dgl_set_lr(gdt_key, gdt_value, lrtensor, nc, Nn) without return types