code: def test_concat_registry():
      registry_1 = FlashRegistry("backbones")
      registry_2 = FlashRegistry("backbones")
      registry_3 = FlashRegistry("test")
  
      @registry_1(name="foo")
      @registry_2(name="foo")
      @registry_2(name="bar")
      @registry_3(name="baz")
      def my_model():
          return 1
  
      registry = registry_1 + registry_2
  
      assert isinstance(registry, ConcatRegistry)
      assert "foo" in registry
      assert registry.name == "backbones"
      assert len(registry) == 3
      assert all(
          not isinstance(r, ConcatRegistry) for r in registry.registries
      )
      assert len(registry.get("foo", strict=False)) == 2
  
      registry.remove("foo")
      assert len(registry) == 1
      assert registry.available_keys() == ["bar"]
  
      registry(my_model)
      assert "my_model" in registry
  
      new_registry = registry + registry_3
      assert all(
          not isinstance(r, ConcatRegistry)
          for r in new_registry.registries
      )
      assert "baz" in new_registry
  
      new_registry = registry_3 + registry
      assert all(
          not isinstance(r, ConcatRegistry)
          for r in new_registry.registries
      )
      assert "baz" in new_registry
  
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 5 for calling a global function with example usage: test_concat_registry() and returns: int