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