docs: def _does_not_contain_replica_sections(sysmeta_pyxb):
      """Assert that ``sysmeta_pyxb`` does not contain any replica information."""
      if len(getattr(sysmeta_pyxb, 'replica', [])):
          raise d1_common.types.exceptions.InvalidSystemMetadata(
              0,
              'A replica section was included. A new object object created via '
              'create() or update() cannot already have replicas. pid="{}"'.format(
                  d1_common.xml.get_req_val(sysmeta_pyxb.identifier)
              ),
              identifier=d1_common.xml.get_req_val(sysmeta_pyxb.identifier),
          )