docs: def _is_not_archived(sysmeta_pyxb):
      """Assert that ``sysmeta_pyxb`` does not have have the archived flag set."""
      if _is_archived(sysmeta_pyxb):
          raise d1_common.types.exceptions.InvalidSystemMetadata(
              0,
              'Archived flag was set. A new object created via create() or update() '
              'cannot already be archived. pid="{}"'.format(
                  d1_common.xml.get_req_val(sysmeta_pyxb.identifier)
              ),
              identifier=d1_common.xml.get_req_val(sysmeta_pyxb.identifier),
          )