code: def softmax_obj_arr(arr):
      output = utils.obj_array(len(arr))
  
      for i, arr_i in enumerate(arr):
          output[i] = softmax(arr_i)
  
      return output
  
imports: import numpy
  from scipy import special
  from pymdp import utils
  from itertools import chain
label_desc: Use image node_id 15 for calling a global function with example usage: softmax_obj_arr(arr) and returns: output