<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _clean(self, seed):
 """Takes a seed and applies it to the garden """

        seed = deepcopy(seed)
        # inherit any other figures
        self._inherit(*array(get(seed, 'inherit', [])))
        # merge the seed arguments
        if '&arguments' in seed:
            self.arguments = merge(self.arguments, seed.pop('&arguments'))

        elif 'arguments' in seed:
            self.arguments = seed.pop('arguments')
        # append the seed
        self.seeds.append(seed)