code: def test_dialogue_from_parameters(domain: Domain):
      tracker = tracker_from_dialogue(TEST_DEFAULT_DIALOGUE, domain)
      serialised_dialogue = InMemoryTrackerStore.serialise_tracker(
          tracker
      )
      deserialised_dialogue = Dialogue.from_parameters(
          json.loads(serialised_dialogue)
      )
      assert (
          tracker.as_dialogue().as_dict()
          == deserialised_dialogue.as_dict()
      )
  
file_path: rasa/tests/shared/core/test_dialogues.py
imports: import json
  import pytest
  from rasa.shared.core.conversation import Dialogue
  from rasa.shared.core.domain import Domain
  from rasa.core.tracker_store import InMemoryTrackerStore
  from tests.dialogues import TEST_DIALOGUES, TEST_DEFAULT_DIALOGUE, TEST_DOMAINS_FOR_DIALOGUES
  from tests.core.utilities import tracker_from_dialogue
label_desc: Use image node_id 2 for calling a global function with example usage: test_dialogue_from_parameters(domain) without return types