class_docstr: Class to read benchmark datasets for the community detection or node embedding task.
  
  Args:
      dataset (str): Dataset of interest, one of:
          (:obj:`"facebook"`, :obj:`"twitch"`, :obj:`"wikipedia"`, :obj:`"github"`, :obj:`"lastfm"`, :obj:`"deezer"`). Default is 'wikipedia'.
class_docstr_tok: ["Class","to","read","benchmark","datasets","for","the","community","detection","or","node","embedding","task",".","Args",":","dataset","(","str",")",":","Dataset","of","interest",",","one","of",":","(",":","obj",":","`","``","facebook","''","`",",",":","obj",":","`","``","twitch","''","`",",",":","obj",":","`","``","wikipedia","''","`",",",":","obj",":","`","``","github","''","`",",",":","obj",":","`","``","lastfm","''","`",",",":","obj",":","`","``","deezer","''","`",")",".","Default","is","'wikipedia","'","."]
code: def __init__(self, dataset: str = "wikipedia"):
      assert dataset in [
          "wikipedia",
          "twitch",
          "github",
          "facebook",
          "lastfm",
          "deezer",
      ], "Wrong dataset."
      self.dataset = dataset
      self.base_url = "https://github.com/benedekrozemberczki/karateclub/raw/master/dataset/node_level/"
  
imports: import io
  import os
  import json
  import numpy
  import pandas
  import networkx
  from typing import List
  from six.moves import urllib
  from scipy.sparse import coo_matrix
label_desc: Use image node_id 1 to create a new GraphReader object from inherited base classes: object with example: obj = GraphReader(dataset)