code: def num_decodings(enc_mes):
      """
      :type s: str
      :rtype: int
      """
      if not enc_mes or enc_mes[0] == "0":
          return 0
      last_char, last_two_chars = 1, 1
      for i in range(1, len(enc_mes)):
          last = last_char if enc_mes[i] != "0" else 0
          last_two = (
              last_two_chars
              if int(enc_mes[i - 1 : i + 1]) < 27
              and enc_mes[i - 1] != "0"
              else 0
          )
          last_two_chars = last_char
          last_char = last + last_two
      return last_char
  
label_desc: Use image node_id 1 for calling a global function with example usage: num_decodings(enc_mes) and returns: last_char, int