code: def test_xor():
      n_samples = np.random.randint(100, 2000)
      X, y = make_xor(n_samples)
      X_0, X_1 = X[y == 0], X[y == 1]
      for x in X_0:
          assert np.all(x[0] < 0.5 and x[1] < 0.5) or (
              x[0] > 0.5 and x[1] > 0.5
          )
  
file_path: DESlib/deslib/tests/util/test_datasets.py
imports: import pytest
  import numpy
  from deslib.util.datasets import make_P2
  from deslib.util.datasets import make_banana
  from deslib.util.datasets import make_banana2
  from deslib.util.datasets import make_circle_square
  from deslib.util.datasets import make_xor
label_desc: Use image node_id 7 for calling a global function with example usage: test_xor() without return types