code: def test_from_dict_with_typing_class():
      data = {
          "type": "haystack.testing.sample_components.merge_loop.MergeLoop",
          "init_parameters": {
              "expected_type": "typing.Dict",
              "inputs": ["first", "second"],
          },
      }
      component = MergeLoop.from_dict(data)
      assert component.expected_type == "typing.Dict"
      assert component.inputs == ["first", "second"]
  
file_path: haystack/test/core/sample_components/test_merge_loop.py
imports: from typing import Dict
  import pytest
  from haystack.core.errors import DeserializationError
  from haystack.testing.sample_components import MergeLoop
label_desc: Use image node_id 5 for calling a global function with example usage: test_from_dict_with_typing_class() without return types