code: def spm_log_single(arr):
      """
      Adds small epsilon value to an array before natural logging it
      """
      return np.log(arr + EPS_VAL)
  
imports: import numpy
  from scipy import special
  from pymdp import utils
  from itertools import chain
label_desc: Use image node_id 9 for calling a global function with example usage: spm_log_single(arr) and returns: np