code: def _array_check_bounds(
      array: torch.LongTensor,
      low: int,
      high: int,
  ) -> bool:
      """Check if all elements lie in bounds."""
      return (low <= array).all() and (array < high).all()
  
file_path: pykeen/tests/test_sampling/cases.py
imports: from typing import Any, MutableMapping
  import numpy
  import torch
  import unittest_templates
  from pykeen.datasets import Nations
  from pykeen.sampling import NegativeSampler
  from pykeen.sampling.filtering import BloomFilterer, PythonSetFilterer
  from pykeen.triples import Instances, TriplesFactory
label_desc: Use image node_id 1 for calling a global function with example usage: _array_check_bounds(array, low, high) and returns: unknown