code: def recursive_map(function, dictionary):
      mapped = dict()
      for key, value in dictionary.items():
          if isinstance(value, dict):
              mapped[key] = recursive_map(function, value)
          else:
              mapped[key] = function(value)
      return mapped
  
imports: import numpy
  import tensorflow
  from tensorforce import Environment, Runner
label_desc: Use image node_id 4 for calling a global function with example usage: recursive_map(function, dictionary) and returns: mapped