code: def test_as_apply_nested_dict():
      d = {"a": 9, "b": {"c": 11, "d": 12}}
      ad = as_apply(d)
      assert isinstance(ad, Apply)
      assert ad.name == "dict"
      assert len(ad) == 2
      assert ad.named_args[0][0] == "a"
      assert ad.named_args[0][1]._obj == 9
      assert ad.named_args[1][0] == "b"
      assert ad.named_args[1][1].name == "dict"
      assert ad.named_args[1][1].named_args[0][0] == "c"
      assert ad.named_args[1][1].named_args[0][1]._obj == 11
      assert ad.named_args[1][1].named_args[1][0] == "d"
      assert ad.named_args[1][1].named_args[1][1]._obj == 12
  
imports: from hyperopt.pyll import base
  from hyperopt.pyll.base import Literal, as_apply, Apply, dfs, scope, rec_eval, p0, Lambda, clone_merge
  from nose import SkipTest
  from nose.tools import assert_raises
  import numpy
label_desc: Use image node_id 11 for calling a global function with example usage: test_as_apply_nested_dict() without return types