code: def _iter_get_input_batch_inputs() -> (
      Iterable[
          Tuple[
              Optional[CoreTriplesFactory],
              Union[None, int, str],
              Union[None, int, str],
              Union[None, int, str],
              pykeen.typing.Target,
          ]
      ]
  ):
      """Iterate over test inputs for _get_input_batch."""
      factory = Nations().training
      # ID-based, no factory
      yield None, 0, 1, None, pykeen.typing.LABEL_TAIL
      yield None, 1, None, 0, pykeen.typing.LABEL_RELATION
      yield None, None, 0, 1, pykeen.typing.LABEL_HEAD
      # string-based + factory
      yield factory, "uk", "accusation", None, pykeen.typing.LABEL_TAIL
      yield factory, "uk", None, "uk", pykeen.typing.LABEL_RELATION
      yield factory, None, "accusation", "uk", pykeen.typing.LABEL_HEAD
      # mixed + factory
      yield factory, 0, "accusation", None, pykeen.typing.LABEL_TAIL
      yield factory, "uk", None, 0, pykeen.typing.LABEL_RELATION
      yield factory, None, 1, "uk", pykeen.typing.LABEL_HEAD
  
imports: from typing import Any, Collection, Iterable, MutableMapping, Optional, Sequence, Tuple, Union
  import numpy
  import pandas
  import pytest
  import torch
  import unittest_templates
  import pykeen.models
  import pykeen.models.mocks
  import pykeen.predict
  import pykeen.regularizers
  import pykeen.typing
  from pykeen.constants import COLUMN_LABELS
  from pykeen.datasets.nations import Nations
  from pykeen.triples.triples_factory import AnyTriples, CoreTriplesFactory, KGInfo
  from pykeen.utils import resolve_device
  from tests import cases
label_desc: Use image node_id 9 for calling a global function with example usage: _iter_get_input_batch_inputs() without return types