code: def recursive_map(func, data):
      
      def recurse(item):
          return recursive_map(func, item)
      items_mapped = map_collection(recurse, data)
      return func(items_mapped)
docs: Apply func to data, and any collection items inside data (using map_collection).
      Define func so that it only applies to the type of value that you want it to apply to.