def METHOD_NAME(
    self,
    db_session: sqlalchemy.orm.Session,
    key: str,
    tag: str = "latest",
    iter: int = 0,
    project: str = mlrun.mlconf.default_project,
    format_: mlrun.common.schemas.artifact.ArtifactsFormat = mlrun.common.schemas.artifact.ArtifactsFormat.full,
) -> dict:
    project = project or mlrun.mlconf.default_project
    artifact = mlrun.api.utils.singletons.db.get_db().read_artifact(
        db_session,
        key,
        tag,
        iter,
        project,
    )
    if format_ == mlrun.common.schemas.artifact.ArtifactsFormat.legacy:
        return _transform_artifact_struct_to_legacy_format(artifact)
    return artifact