code: def test_host_info_decorator_depreciation_warning():
      try:
          assert "foo" not in host_info_gatherers
  
          with pytest.warns(DeprecationWarning):
  
              @host_info_getter(name="foo")
              def greeting():
                  return "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 4 for calling a global function with example usage: test_host_info_decorator_depreciation_warning() and returns: str