code: def get_true(pos: int = 5, neg: int = 5) -> np.ndarray:
      """Get a true vector."""
      y_true = np.concatenate(
          [
              np.ones(pos),
              np.zeros(neg),
          ]
      )
      assert (np.array([1] * pos + [0] * neg) == y_true).all()
      return y_true
  
file_path: pykeen/tests/test_evaluation/test_utils.py
imports: import unittest
  import numpy
  from pykeen.metrics.classification import construct_indicator
label_desc: Use image node_id 1 for calling a global function with example usage: get_true(pos, neg) and returns: y_true