code: def test_nan_interior(self):
      with errstate(invalid="ignore"):
          y = geomspace(-3, 3, num=4)
  
      assert_equal(y[0], -3.0)
      assert_(isnan(y[1:-1]).all())
      assert_equal(y[3], 3.0)
  
      with errstate(invalid="ignore"):
          y = geomspace(-3, 3, num=4, endpoint=False)
  
      assert_equal(y[0], -3.0)
      assert_(isnan(y[1:]).all())
  
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 3 for calling the TestGeomspace obj's underlying member method code with example usage: obj.test_nan_interior() without return types