code: def test_typed_dict():
      """Test word list from typed dict."""
      # load training data
      X, y = load_gunpoint(split="train", return_X_y=True)
  
      word_length = 6
      alphabet_size = 4
  
      p = SFA(
          word_length=word_length,
          alphabet_size=alphabet_size,
          levels=2,
          typed_dict=True,
      )
      p.fit(X, y)
      word_list = p.bag_to_string(p.transform(X, y)[0][0])
  
      word_length = 6
      alphabet_size = 4
  
      p2 = SFA(
          word_length=word_length,
          alphabet_size=alphabet_size,
          levels=2,
          typed_dict=False,
      )
      p2.fit(X, y)
      word_list2 = p2.bag_to_string(p2.transform(X, y)[0][0])
  
      assert word_list == word_list2
  
file_path: sktime/sktime/transformations/panel/dictionary_based/tests/test_sfa.py
imports: import sys
  import numpy
  import pytest
  from sktime.datasets import load_gunpoint
  from sktime.datatypes._panel._convert import from_nested_to_2d_array
  from sktime.tests.test_switch import run_test_for_class
  from sktime.transformations.panel.dictionary_based._sfa import SFA
label_desc: Use image node_id 6 for calling a global function with example usage: test_typed_dict() without return types