Fix issue in which unspecified mesh and mesh_axes for PyTreeCheckpointer would automatically replicated the restored GDAs without error. This change makes it so that restoring as GDA without specifying these arguments is an error. If restore_args is not specified, we restore as non-GDA.
Fix issue in which unspecified mesh and mesh_axes for PyTreeCheckpointer would automatically replicated the restored GDAs without error. This change makes it so that restoring as GDA without specifying these arguments is an error. If restore_args is not specified, we restore as non-GDA.

PiperOrigin-RevId: 453259715

google/orbax