code: def word_break(word, word_dict):
      """
      :type word: str
      :type word_dict: Set[str]
      :rtype: bool
      """
      dp_array = [False] * (len(word) + 1)
      dp_array[0] = True
      for i in range(1, len(word) + 1):
          for j in range(0, i):
              if dp_array[j] and word[j:i] in word_dict:
                  dp_array[i] = True
                  break
      return dp_array[-1]
  
label_desc: Use image node_id 1 for calling a global function with example usage: word_break(word, word_dict) and returns: dp_array