def METHOD_NAME(name: str, session) -> None:
    get_structured_logger("api_user_models").info("creating user role", role=name)
    # TODO: check role doesnt already exist
    session.execute(f"""
        INSERT INTO user_role (name)
        SELECT '{name}'
        WHERE NOT EXISTS
            (SELECT *
            FROM user_role
            WHERE name='{name}')
    """)
    session.commit()
    return session.query(UserRole).filter(UserRole.name == name).first()