code: def _hasher(kwargs: Mapping[str, Any]) -> int:
      return hash(
          (
              id(kwargs["model"]),
              kwargs["mapped_triples"].shape[0],
              kwargs["negatives"].shape,
              kwargs["target"],
          )
      )
  
file_path: pykeen/src/pykeen/evaluation/ogb_evaluator.py
imports: from __future__ import annotations
  import logging
  from typing import Any, Collection, Dict, Iterable, List, Mapping, Optional, Tuple, Union
  import torch
  from torch_max_mem import maximize_memory_utilization
  from tqdm.auto import tqdm
  from .evaluator import MetricResults
  from .rank_based_evaluator import RankBasedMetricKey, RankBasedMetricResults, SampledRankBasedEvaluator
  from ..metrics import RankBasedMetric
  from ..metrics.ranking import HitsAtK, InverseHarmonicMeanRank
  from ..models import Model
  from ..typing import LABEL_HEAD, LABEL_TAIL, RANK_REALISTIC, SIDE_BOTH, ExtendedTarget, MappedTriples, Target
label_desc: Use image node_id 2 for calling a global function with example usage: _hasher(kwargs) and returns: hash