code: def wordfreq(text, is_filename=False):
      """Return a dictionary of words and word counts in a string."""
      if is_filename:
          with open(text) as f:
              text = f.read()
      freqs = {}
      for word in text.split():
          lword = word.lower()
          freqs[lword] = freqs.get(lword, 0) + 1
      return freqs
  
label_desc: Use image node_id 1 for calling a global function with example usage: wordfreq(text, is_filename) and returns: freqs