<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def map(self, func, value_shape=None, dtype=None):
 """ Apply an array -> array function to each block """

        mapped = self.values.map(func, value_shape=value_shape, dtype=dtype)
        return self._constructor(mapped).__finalize__(self, noprop=('dtype',))