<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def overwrite(self, mesh):
 """ Overwrites this mesh inplace with the new mesh's geometries and data Parameters mesh : vtk.vtkDataSet The overwriting mesh. """

        self.DeepCopy(mesh)
        if is_vtki_obj(mesh):
            self.copy_meta_from(mesh)