code: def test_wfg_nd() -> None:
      for n in range(2, 10):
          r = 10 * np.ones(n)
          s = [
              np.hstack((np.zeros(i), [1], np.zeros(n - i - 1)))
              for i in range(n)
          ]
          for _ in range(10):
              s.append(np.random.randint(1, 10, size=(n,)))
          o = np.asarray(s)
          np.random.shuffle(o)
          v = optuna._hypervolume.WFG().compute(o, r)
          assert v == 10**n - 1
  
file_path: optuna/tests/hypervolume_tests/test_wfg.py
imports: import numpy
  import pytest
  import optuna
label_desc: Use image node_id 3 for calling a global function with example usage: test_wfg_nd() without return types