code: def to_link_batch(data):
      block = gb.MiniBatch(node_pairs=data)
      return block
  
imports: import unittest
  from enum import Enum
  from functools import partial
  import backend
  import dgl
  import dgl.graphbolt
  import pytest
  import torch
  from torchdata.datapipes.iter import Mapper
  from .None import gb_test_utils
label_desc: Use image node_id 7 for calling a global function with example usage: to_link_batch(data) and returns: block