code: def test_registry_multiple_decorators(caplog):
      backbones = FlashRegistry("backbones", verbose=True)
  
      with caplog.at_level(logging.INFO):
  
          @backbones
          @backbones(name="foo")
          @backbones(name="bar", foobar=True)
          def my_model():
              return 1
  
      assert caplog.messages == [
          "Registering: my_model function with name: bar and metadata: {'foobar': True}",
          "Registering: my_model function with name: foo and metadata: {}",
          "Registering: my_model function with name: my_model and metadata: {}",
      ]
  
      assert len(backbones) == 3
      assert "foo" in backbones
      assert "my_model" in backbones
      assert "bar" in backbones
  
file_path: lightning-flash/tests/core/test_registry.py
imports: import logging
  import pytest
  from flash.core.registry import ConcatRegistry, ExternalRegistry, FlashRegistry
  from flash.core.utilities.imports import _TOPIC_CORE_AVAILABLE
  from torch import nn
label_desc: Use image node_id 3 for calling a global function with example usage: test_registry_multiple_decorators(caplog) and returns: int