code: def test_specify_graph_backend_init(self):
      G = sx.Graph()
      G.add_nodes_from(range(100))
      G.add_edges_from([[0, 4], [1, 5], [2, 6]])
      graph = Graph(G, netlib=sx)
      self.assertTrue(isinstance(graph.G, sx.Graph))
      self.assertEqual(list(graph.edge_index.shape), [2, 6])
      self.assertEqual(list(graph.edge_label_index.shape), [2, 6])
      self.assertEqual(list(graph.node_label_index.shape), [100])
  
      import networkx as nx
  
      G = nx.Graph()
      G.add_nodes_from(range(100))
      G.add_edges_from([[0, 4], [1, 5], [2, 6]])
      graph = Graph(G, netlib=nx)
      self.assertTrue(isinstance(graph.G, nx.Graph))
      self.assertEqual(list(graph.edge_index.shape), [2, 6])
      self.assertEqual(list(graph.edge_label_index.shape), [2, 6])
      self.assertEqual(list(graph.node_label_index.shape), [100])
  
file_path: deepsnap/tests/test_graph_backend.py
imports: import snap
  import snapx
  import unittest
  import torch
  import networkx
  from torch.utils.data import DataLoader
  from torch_geometric.datasets import Planetoid
  from deepsnap.graph import Graph
  from deepsnap.batch import Batch
  from deepsnap.dataset import GraphDataset
label_desc: Use image node_id 2 for calling the TestGraphBackend obj's underlying member method code with example usage: obj.test_specify_graph_backend_init() without return types