class_docstr: Load from the Open Graph Benchmark (OGB).
class_docstr_tok: ["Load","from","the","Open","Graph","Benchmark","(","OGB",")","."]
docstr: Initialize the OGB loader.
  
  :param cache_root: An optional override for where data should be cached.
      If not specified, uses default PyKEEN location with :mod:`pystow`.
  :param create_inverse_triples: Should inverse triples be created? Defaults to false.
docstr_tok: ["Initialize","the","OGB","loader",".",":","param","cache_root",":","An","optional","override","for","where","data","should","be","cached",".","If","not","specified",",","uses","default","PyKEEN","location","with",":","mod",":","`","pystow","`",".",":","param","create_inverse_triples",":","Should","inverse","triples","be","created","?","Defaults","to","false","."]
code: def __init__(
      self,
      cache_root: Optional[str] = None,
      create_inverse_triples: bool = False,
  ):
      """Initialize the OGB loader.
  
      :param cache_root: An optional override for where data should be cached.
          If not specified, uses default PyKEEN location with :mod:`pystow`.
      :param create_inverse_triples: Should inverse triples be created? Defaults to false.
      """
      self.cache_root = self._help_cache(cache_root)
      self._create_inverse_triples = create_inverse_triples
  
imports: from __future__ import annotations
  import abc
  import logging
  import pathlib
  import typing
  from typing import ClassVar, Generic, Literal, Optional, Sequence, TypedDict, TypeVar, Union, cast, overload
  import click
  import numpy
  import pandas
  import torch
  from docdata import parse_docdata
  from more_click import verbose_option
  from .base import LazyDataset
  from ..triples import TriplesFactory
  from ..typing import EntityMapping, RelationMapping
label_desc: Use image node_id 1 to create a new OGBLoader object from inherited base classes: LazyDataset, Generic with example: obj = OGBLoader(cache_root, create_inverse_triples)