code: def shift_decor(shift_func):
      """
      Make `shift` error-free on non-int values. Decorated `shift` keeps non-int
          values original.
      :param ~types.FunctionType: a shift function that only processes int values
      :return ~types.FunctionType: a shift function that processes all types of values
      """
  
      def wrapped(maybe_word_idx):
          if isinstance(maybe_word_idx, int):
              return shift_func(maybe_word_idx)
          else:
              return maybe_word_idx
  
      return wrapped
  
label_desc: Use image node_id 3 for calling a global function with example usage: shift_decor(shift_func) and returns: wrapped, shift_func, maybe_word_idx