code: def test_consistency():
      # Make sure the implementation of spence for real arguments
      # agrees with the implementation of spence for imaginary arguments.
  
      x = np.logspace(-30, 300, 200)
      dataset = np.vstack((x + 0j, spence(x))).T
      FuncData(spence, dataset, 0, 1, rtol=1e-14).check()
  
imports: import numpy
  from numpy import sqrt, log, pi
  from scipy.special._testutils import FuncData
  from scipy.special import spence
label_desc: Use image node_id 1 for calling a global function with example usage: test_consistency() without return types