def get_run_metadata(run_id, session=None):
    session = session or get_session()
    query = db_utils.model_query(models.RunMetadata, session).join(
        models.Run,
        models.RunMetadata.run_id == models.Run.id).filter(
            models.Run.uuid == run_id)
    return query.all()
check_user_logged_in looks for the "you're already logged" message
dataset/ETHPy150Open openstack-infra/subunit2sql/subunit2sql/db/api.py/get_run_metadata--crossover with--dataset/ETHPy150Open benadida/helios-server/helios/tests.py/ElectionBlackboxTests._cast_ballot