code: def test_returns_if_arg_already_instantiated():
      obs_conv = CustomDummyObservationConversion(attr=1)
      registry = Factory(base_type=DummyObservationConversion)
      obj = registry.instantiate(config=obs_conv)
      assert obj == obj
  
file_path: maze/maze/test/core/test_registry.py
imports: import pytest
  from hydra.errors import InstantiationException
  from maze.core.utils.factory import Factory
  from maze.test.shared_test_utils.dummy_env.space_interfaces.action_conversion.dict import DictActionConversion
  from maze.test.shared_test_utils.dummy_env.space_interfaces.observation_conversion.dict import ObservationConversion
label_desc: Use image node_id 1 for calling a global function with example usage: test_returns_if_arg_already_instantiated() without return types