code: def test_basic(self):
      y = geomspace(1, 1e6)
      assert_(len(y) == 50)
      y = geomspace(1, 1e6, num=100)
      assert_(y[-1] == 10**6)
      y = geomspace(1, 1e6, endpoint=False)
      assert_(y[-1] < 10**6)
      y = geomspace(1, 1e6, num=7)
      assert_array_equal(y, [1, 10, 100, 1e3, 1e4, 1e5, 1e6])
  
      y = geomspace(8, 2, num=3)
      assert_allclose(y, [8, 4, 2])
      assert_array_equal(y.imag, 0)
  
      y = geomspace(-1, -100, num=3)
      assert_array_equal(y, [-1, -10, -100])
      assert_array_equal(y.imag, 0)
  
      y = geomspace(-100, -1, num=3)
      assert_array_equal(y, [-100, -10, -1])
      assert_array_equal(y.imag, 0)
  
imports: import pytest
  from numpy import logspace, linspace, geomspace, dtype, array, sctypes, arange, isnan, ndarray, sqrt, nextafter, stack, errstate
  from numpy.testing import assert_, assert_equal, assert_raises, assert_array_equal, assert_allclose
label_desc: Use image node_id 1 for calling the TestGeomspace obj's underlying member method code with example usage: obj.test_basic() without return types