code: def spm_log_obj_array(obj_arr):
      """
      Applies `spm_log_single` to multiple elements of a numpy object array
      """
  
      obj_arr_logged = utils.obj_array(len(obj_arr))
      for idx, arr in enumerate(obj_arr):
          obj_arr_logged[idx] = spm_log_single(arr)
  
      return obj_arr_logged
  
imports: import numpy
  from scipy import special
  from pymdp import utils
  from itertools import chain
label_desc: Use image node_id 10 for calling a global function with example usage: spm_log_obj_array(obj_arr) and returns: obj_arr_logged