code: def test_boundaries_match_start_and_stop_exactly(self):
      # make sure that the boundaries of the returned array exactly
      # equal 'start' and 'stop' - this isn't obvious because
      # np.exp(np.log(x)) isn't necessarily exactly equal to x
      start = 0.3
      stop = 20.3
  
      y = geomspace(start, stop, num=1)
      assert_equal(y[0], start)
  
      y = geomspace(start, stop, num=1, endpoint=False)
      assert_equal(y[0], start)
  
      y = geomspace(start, stop, num=3)
      assert_equal(y[0], start)
      assert_equal(y[-1], stop)
  
      y = geomspace(start, stop, num=3, endpoint=False)
      assert_equal(y[0], start)
  
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 2 for calling the TestGeomspace obj's underlying member method code with example usage: obj.test_boundaries_match_start_and_stop_exactly() without return types