code: def test_logging_profile_profiling(caplog, default_logger_propagate):
      @profiling
      def foo():
          time.sleep(1)
  
      foo()
      # profiling format: JINA@79684[I]: foo time: 0.00042528799999996814s memory Δ 376.0 KB 47.3 MB -> 47.7 MB
      assert "time" in caplog.text
  
imports: import time
  import pytest
  from jina.logging.predefined import default_logger
  from jina.logging.profile import profiling
label_desc: Use image node_id 2 for calling a global function with example usage: test_logging_profile_profiling(caplog, default_logger_propagate) without return types