code: def __init__(self, expected_type: Any, inputs: List[str]):
      component.set_input_types(
          self,
          **{
              input_name: Optional[expected_type]
              for input_name in inputs
          },
      )
      component.set_output_types(self, value=expected_type)
  
      if expected_type.__module__ == "builtins":
          self.expected_type = f"builtins.{expected_type.__name__}"
      elif expected_type.__module__ == "typing":
          self.expected_type = str(expected_type)
      else:
          self.expected_type = (
              f"{expected_type.__module__}.{expected_type.__name__}"
          )
  
      self.inputs = inputs
  
file_path: haystack/haystack/testing/sample_components/merge_loop.py
imports: from typing import List, Any, Optional, Dict
  import sys
  from haystack.core.component import component
  from haystack.core.errors import DeserializationError
  from haystack.core.serialization import default_to_dict
label_desc: Use image node_id 1 to create a new MergeLoop object  with example: obj = MergeLoop(expected_type, inputs)