code: def test_as_linkpred_ogb():
      from ogb.linkproppred import DglLinkPropPredDataset
  
      ds = data.AsLinkPredDataset(
          DglLinkPropPredDataset("ogbl-collab"),
          split_ratio=None,
          verbose=True,
      )
      # original dataset has 46329 test edges
      assert ds.test_edges[0][0].shape[0] == 46329
      # force generate new split
      ds = data.AsLinkPredDataset(
          DglLinkPropPredDataset("ogbl-collab"),
          split_ratio=[0.7, 0.2, 0.1],
          verbose=True,
      )
      assert ds.test_edges[0][0].shape[0] == 235812
  
imports: import gzip
  import io
  import os
  import tarfile
  import tempfile
  import unittest
  import backend
  import dgl
  import dgl.data
  import numpy
  import pandas
  import pytest
  import yaml
  from dgl import DGLError
label_desc: Use image node_id 10 for calling a global function with example usage: test_as_linkpred_ogb() without return types