code: def test_router_initialized(self, routes):
      router = ConditionalRouter(routes)
  
      assert router.routes == routes
      assert set(router.__canals_input__.keys()) == {"query", "streams"}
      assert set(router.__canals_output__.keys()) == {
          "query",
          "streams",
      }
  
imports: import copy
  from typing import List
  from unittest import mock
  import pytest
  from haystack.components.routers import ConditionalRouter
  from haystack.components.routers.conditional_router import NoRouteSelectedException
  from haystack.dataclasses import ChatMessage
label_desc: Use image node_id 7 for calling the TestRouter obj's underlying member method code with example usage: obj.test_router_initialized(routes) without return types