code: def test_complex(self):
      lim1 = linspace(1 + 2j, 3 + 4j, 5)
      t1 = array(
          [1.0 + 2.0j, 1.5 + 2.5j, 2.0 + 3j, 2.5 + 3.5j, 3.0 + 4j]
      )
      lim2 = linspace(1j, 10, 5)
      t2 = array(
          [0.0 + 1.0j, 2.5 + 0.75j, 5.0 + 0.5j, 7.5 + 0.25j, 10.0 + 0j]
      )
      assert_equal(lim1, t1)
      assert_equal(lim2, t2)
  
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 7 for calling the TestLinspace obj's underlying member method code with example usage: obj.test_complex() without return types