code: def test_stsp(complex_tsp: bool) -> None:
      func = core.STSP(complex_tsp=complex_tsp)
      x = 7 * np.random.rand(func.dimension)
      value = func(
          x
      )  # should not touch boundaries, so value should be < np.inf
      assert isinstance(value, float)
      assert value < np.inf
  
imports: import numpy
  import pytest
  from .None import core
label_desc: Use image node_id 1 for calling a global function with example usage: test_stsp(complex_tsp) without return types