code: def test_word_pattern(self):
      self.assertTrue(word_pattern("abba", "dog cat cat dog"))
      self.assertFalse(word_pattern("abba", "dog cat cat fish"))
      self.assertFalse(word_pattern("abba", "dog dog dog dog"))
      self.assertFalse(word_pattern("aaaa", "dog cat cat dog"))
  
imports: from algorithms.map import HashTable, ResizableHashTable, SeparateChainingHashTable, word_pattern, is_isomorphic, is_anagram, longest_palindromic_subsequence
  import unittest
label_desc: Use image node_id 1 for calling the TestWordPattern obj's underlying member method code with example usage: obj.test_word_pattern() without return types