class_docstr: A base class for inductive models.
  
  This model assumes a shared set of relations between all triple sets (e.g., training and validation), and a
  separate inference factory used during validation. During testing time, either the validation factory is re-used
  or another separate testing factory may be provided.
class_docstr_tok: ["A","base","class","for","inductive","models",".","This","model","assumes","a","shared","set","of","relations","between","all","triple","sets","(","e.g.",",","training","and","validation",")",",","and","a","separate","inference","factory","used","during","validation",".","During","testing","time",",","either","the","validation","factory","is","re-used","or","another","separate","testing","factory","may","be","provided","."]
code: def _get_entity_representations_from_inductive_mode(
      self, *, mode: Optional[InductiveMode]
  ) -> Sequence[Representation]:  # noqa: D102
      if mode is None:
          raise ValueError(
              f"{self.__class__.__name__} does not support the transductive setting (i.e., when mode is None)"
          )
      key = f"{mode}_factory"
      if key in self._mode_to_representations:
          return self._mode_to_representations[key]
      raise ValueError(
          f"{self.__class__.__name__} does not support mode={mode}"
      )
  
file_path: pykeen/src/pykeen/models/inductive/base.py
imports: from collections import ChainMap
  from typing import Mapping, Optional, Sequence
  from class_resolver import OneOrManyHintOrType, OneOrManyOptionalKwargs
  from torch import nn
  from ..nbase import ERModel
  from ...nn import Representation
  from ...triples import CoreTriplesFactory
  from ...typing import TESTING, TRAINING, VALIDATION, InductiveMode
label_desc: Use image node_id 2 for calling the InductiveERModel obj's underlying member method code with example usage: obj._get_entity_representations_from_inductive_mode() and returns: self