code: def _flatten(value):
      t = type(value)
      if t in (list, tuple):
          return _concatenate(map(_flatten, value))
      elif t is dict:
          return _concatenate(_flatten(value[k]) for k in sorted(value))
      else:
          return np.ravel(value)
  
imports: from autograd import make_vjp
  from autograd.builtins import type
  import autograd.numpy
label_desc: Use image node_id 2 for calling a global function with example usage: _flatten(value) and returns: _concatenate, _concatenate, np