class_docstr: Raised when the wrong dimensions were supplied.
class_docstr_tok: ["Raised","when","the","wrong","dimensions","were","supplied","."]
docstr: Initialize the error.
  
  :param given:
      the given keys
  :param expected:
      the expected keys
docstr_tok: ["Initialize","the","error",".",":","param","given",":","the","given","keys",":","param","expected",":","the","expected","keys"]
code: def __init__(self, given, expected):
      """
      Initialize the error.
  
      :param given:
          the given keys
      :param expected:
          the expected keys
      """
      self.given = given
      self.expected = expected
  
file_path: pykeen/src/pykeen/models/resolve.py
imports: import logging
  from typing import Any, Mapping, Optional, Sequence, Tuple, Type, Union
  from class_resolver import OptionalKwargs
  from .nbase import ERModel
  from ..nn.modules import Interaction, interaction_resolver
  from ..typing import HeadRepresentation, RelationRepresentation, TailRepresentation
label_desc: Use image node_id 1 to create a new DimensionError object from inherited base classes: ValueError with example: obj = DimensionError(given, expected)