code: def test_local_context():
      myenv_res = dict()
      my2env_res = dict()
      my3env_res = dict()
  
      def _collect_envs(where):
          myenv_res[where] = local_env("myenv")
          my2env_res[where] = local_env("my2env")
          my3env_res[where] = local_env("my3env")
  
      _collect_envs("before")
      with local_context(myenv="first_level", my2env="only_first"):
          _collect_envs("before_nested")
          with local_context(
              myenv="second_level", my3env="only_second"
          ):
              _collect_envs("inside_nested")
          _collect_envs("after_nested")
      _collect_envs("after")
  
      assert myenv_res == dict(
          before=None,
          before_nested="first_level",
          inside_nested="second_level",
          after_nested="first_level",
          after=None,
      )
      assert my2env_res == dict(
          before=None,
          before_nested="only_first",
          inside_nested="only_first",
          after_nested="only_first",
          after=None,
      )
      assert my3env_res == dict(
          before=None,
          before_nested=None,
          inside_nested="only_second",
          after_nested=None,
          after=None,
      )
  
label_desc: Use image node_id 1 for calling a global function with example usage: test_local_context() without return types