def METHOD_NAME(self) -> str:
    if self.metadata is None:
        raise ValueError("No metadata record found in Dandiset")
    id_ = self._get_identifier(self.metadata)
    if not id_:
        raise ValueError(
            f"Found no dandiset.identifier in metadata record: {self.metadata}"
        )
    return id_