code: def test_deprecated_func_decorator():
      @deprecated(
          version=1.0,
          replacement="foo1",
      )
      def foo():
          pass
  
      with pytest.deprecated_call():
          foo()
  
      with pytest.warns(PendingDeprecationWarning) as record:
          foo()
          foo()
          assert len(record) == 2
  
label_desc: Use image node_id 1 for calling a global function with example usage: test_deprecated_func_decorator() without return types