code: def test_host_info_decorator_with_name():
      try:
          assert "foo" not in host_info_gatherers
  
          @host_info_getter(name="foo")
          def greeting():
              return "hello"
  
          assert "foo" in host_info_gatherers
          assert "greeting" not in host_info_gatherers
          assert host_info_gatherers["foo"] == greeting
          assert get_host_info()["foo"] == "hello"
      finally:
          del host_info_gatherers["foo"]
  
imports: import pytest
  from sacred.host_info import get_host_info, host_info_getter, host_info_gatherers
label_desc: Use image node_id 3 for calling a global function with example usage: test_host_info_decorator_with_name() and returns: str