class_docstr: Test for evaluation callback.
class_docstr_tok: ["Test","for","evaluation","callback","."]
code: def _pre_instantiation_hook(
      self, kwargs: MutableMapping[str, Any]
  ) -> MutableMapping[str, Any]:  # noqa: D102
      kwargs = super()._pre_instantiation_hook(kwargs)
      kwargs[
          "evaluation_triples"
      ] = self.dataset.validation.mapped_triples
      return kwargs
  
file_path: pykeen/tests/test_training/test_callbacks.py
imports: import unittest
  from typing import Any, MutableMapping
  from unittest import mock
  import torch
  from pykeen.evaluation.evaluator import Evaluator
  from pykeen.pipeline import pipeline
  from pykeen.training.callbacks import EvaluationLossTrainingCallback, EvaluationTrainingCallback
  from ..None import cases
label_desc: Use image node_id 1 for calling the EvaluationTrainingCallbackTestCase obj's underlying member method code with example usage: obj._pre_instantiation_hook(kwargs) and returns: kwargs