class_docstr: Maps normal relations to even IDs, and the corresponding inverse to the next odd ID.
class_docstr_tok: ["Maps","normal","relations","to","even","IDs",",","and","the","corresponding","inverse","to","the","next","odd","ID","."]
code: def is_inverse(
      self, ids: torch.LongTensor
  ) -> torch.BoolTensor:  # noqa: D102
      return ids % 2 == 1
  
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 4 for calling the DefaultRelationInverter obj's underlying member method code with example usage: obj.is_inverse(ids) and returns: unknown