code: def test_solve_hssp(dim: int) -> None:
      rng = np.random.RandomState(128)
  
      for i in range(1, 9):
          subset_size = np.random.randint(1, i + 1)
          test_case = rng.rand(8, dim)
          truth, approx = _compute_hssp_truth_and_approx(
              test_case, subset_size
          )
          assert approx / truth > 0.6321
  
file_path: optuna/tests/hypervolume_tests/test_hssp.py
imports: import itertools
  from typing import Tuple
  import numpy
  import pytest
  import optuna
label_desc: Use image node_id 2 for calling a global function with example usage: test_solve_hssp(dim) without return types