code: def test_generate_args(N, generate_complex):
      dt = 0.1
      beta = 2
      x = generate_power_law(N, dt, beta, generate_complex)
  
      assert_(bool(generate_complex) == np.iscomplexobj(x))
      assert_(len(x) == N)
  
imports: import pytest
  import numpy
  from numpy.testing import assert_, assert_almost_equal
  from astroML.time_series import generate_power_law, generate_damped_RW
label_desc: Use image node_id 1 for calling a global function with example usage: test_generate_args(N, generate_complex) without return types