class_docstr: An interface for inverse-relation ID mapping.
class_docstr_tok: ["An","interface","for","inverse-relation","ID","mapping","."]
docstr: Map relations in a batch.
docstr_tok: ["Map","relations","in","a","batch","."]
code: def _map(
      self, batch: torch.LongTensor, index: int = 1
  ) -> torch.LongTensor:
      """Map relations in a batch."""
  
file_path: pykeen/src/pykeen/inverse.py
imports: from abc import ABC, abstractmethod
  from typing import TypeVar
  import torch
  from class_resolver import Resolver
label_desc: Use image node_id 2 for calling the RelationInverter obj's underlying member method code with example usage: obj._map(batch, index) without return types