def METHOD_NAME(session: sqlalchemy.orm.Session, csv: str) -> List[Package]:
	retval = []
	supported_games_raw = csv.split(",")
	for game_name in supported_games_raw:
		game_name = game_name.strip()
		if game_name.endswith("_game"):
			game_name = game_name[:-5]
		games = session.query(Package).filter(and_(Package.state==PackageState.APPROVED, Package.type==PackageType.GAME,
				or_(Package.name==game_name, Package.name==game_name + "_game"))).all()
		retval.extend(games)
	return retval