code: def test_flatten_complex():
      val = 1 + 1j
      flat, unflatten = flatten(val)
      assert np.all(val == unflatten(flat))
  
file_path: autograd/tests/test_misc.py
imports: import autograd.numpy
  import autograd.numpy.random
  from autograd.test_util import scalar_close
  from autograd import make_vjp, grad
  from autograd.tracer import primitive
  from autograd.misc import const_graph, flatten
label_desc: Use image node_id 8 for calling a global function with example usage: test_flatten_complex() without return types