def METHOD_NAME(self):
    mesh0 = discretize.TreeMesh([8, 8, 8])
    def refine(cell):
        xyz = cell.center
        dist = ((xyz - 0.25) ** 2).sum() ** 0.5
        if dist < 0.25:
            return 3
        return 2
    mesh0.refine(refine)
    mesh_dict = mesh0.serialize()
    mesh1 = discretize.TreeMesh.deserialize(mesh_dict)
    self.assertEqual(mesh0.nC, mesh1.nC)
    self.assertEqual(mesh0.__str__(), mesh1.__str__())
    self.assertTrue(np.allclose(mesh0.gridCC, mesh1.gridCC))
    self.assertTrue(np.allclose(np.array(mesh0.h), np.array(mesh1.h)))
    print("dic serialize 3D is working")