code: def test_as_nodepred_ogb():
      from ogb.nodeproppred import DglNodePropPredDataset
  
      ds = data.AsNodePredDataset(
          DglNodePropPredDataset("ogbn-arxiv"),
          split_ratio=None,
          verbose=True,
      )
      split = DglNodePropPredDataset("ogbn-arxiv").get_idx_split()
      train_idx, val_idx, test_idx = (
          split["train"],
          split["valid"],
          split["test"],
      )
      assert F.array_equal(ds.train_idx, F.tensor(train_idx))
      assert F.array_equal(ds.val_idx, F.tensor(val_idx))
      assert F.array_equal(ds.test_idx, F.tensor(test_idx))
      # force generate new split
      ds = data.AsNodePredDataset(
          DglNodePropPredDataset("ogbn-arxiv"),
          split_ratio=[0.7, 0.2, 0.1],
          verbose=True,
      )
  
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 11 for calling a global function with example usage: test_as_nodepred_ogb() without return types