class_docstr: Flickr dataset for node classification from `GraphSAINT: Graph Sampling Based Inductive
  Learning Method <https://arxiv.org/abs/1907.04931>`_
  
  The task of this dataset is categorizing types of images based on the descriptions and common
  properties of online images.
  
  Flickr dataset statistics:
  
  - Nodes: 89,250
  - Edges: 899,756
  - Number of classes: 7
  - Node feature size: 500
  
  Parameters
  ----------
  raw_dir : str
      Raw file directory to download/contains the input data directory.
      Default: ~/.dgl/
  force_reload : bool
      Whether to reload the dataset.
      Default: False
  verbose : bool
      Whether to print out progress information.
      Default: False
  transform : callable, optional
      A transform that takes in a :class:`~dgl.DGLGraph` object and returns
      a transformed version. The :class:`~dgl.DGLGraph` object will be
      transformed before every access.
  reorder : bool
      Whether to reorder the graph using :func:`~dgl.reorder_graph`.
      Default: False.
  
  Attributes
  ----------
  num_classes : int
      Number of node classes
  
  Examples
  --------
  >>> from dgl.data import FlickrDataset
  >>> dataset = FlickrDataset()
  >>> dataset.num_classes
  7
  >>> g = dataset[0]
  >>> # get node feature
  >>> feat = g.ndata['feat']
  >>> # get node labels
  >>> labels = g.ndata['label']
  >>> # get data split
  >>> train_mask = g.ndata['train_mask']
  >>> val_mask = g.ndata['val_mask']
  >>> test_mask = g.ndata['test_mask']
class_docstr_tok: ["Flickr","dataset","for","node","classification","from","`","GraphSAINT",":","Graph","Sampling","Based","Inductive","Learning","Method","<","https",":","\/\/arxiv.org\/abs\/1907.04931",">","`","_","The","task","of","this","dataset","is","categorizing","types","of","images","based","on","the","descriptions","and","common","properties","of","online","images",".","Flickr","dataset","statistics",":","-","Nodes",":","89,250","-","Edges",":","899,756","-","Number","of","classes",":","7","-","Node","feature","size",":","500","Parameters","--","--","--","--","--","raw_dir",":","str","Raw","file","directory","to","download\/contains","the","input","data","directory",".","Default",":","~\/.dgl\/","force_reload",":","bool","Whether","to","reload","the","dataset",".","Default",":","False","verbose",":","bool","Whether","to","print","out","progress","information",".","Default",":","False","transform",":","callable",",","optional","A","transform","that","takes","in","a",":","class",":","`","~dgl.DGLGraph","`","object","and","returns","a","transformed","version",".","The",":","class",":","`","~dgl.DGLGraph","`","object","will","be","transformed","before","every","access",".","reorder",":","bool","Whether","to","reorder","the","graph","using",":","func",":","`","~dgl.reorder_graph","`",".","Default",":","False",".","Attributes","--","--","--","--","--","num_classes",":","int","Number","of","node","classes","Examples","--","--","--","--",">",">",">","from","dgl.data","import","FlickrDataset",">",">",">","dataset","=","FlickrDataset","(",")",">",">",">","dataset.num_classes","7",">",">",">","g","=","dataset","[","0","]",">",">",">","#","get","node","feature",">",">",">","feat","=","g.ndata","[","'feat","'","]",">",">",">","#","get","node","labels",">",">",">","labels","=","g.ndata","[","'label","'","]",">",">",">","#","get","data","split",">",">",">","train_mask","=","g.ndata","[","'train_mask","'","]",">",">",">","val_mask","=","g.ndata","[","'val_mask","'","]",">",">",">","test_mask","=","g.ndata","[","'test_mask","'","]"]
docstr: The number of graphs in the dataset.
docstr_tok: ["The","number","of","graphs","in","the","dataset","."]
code: def __len__(self):
      r"""The number of graphs in the dataset."""
      return 1
  
file_path: dgl/python/dgl/data/flickr.py
imports: import json
  import os
  import numpy
  import scipy.sparse
  from ..None import backend
  from ..convert import from_scipy
  from ..transforms import reorder_graph
  from .dgl_dataset import DGLBuiltinDataset
  from .utils import _get_dgl_url, generate_mask_tensor, load_graphs, save_graphs
label_desc: Use image node_id 7 for calling the FlickrDataset obj's underlying member method code with example usage: obj.__len__() and returns: int