converted old switch to new format and added test
converted old switch to new format and added test: a task in github-trending-environments-10k (Harbor dataset). Title: converted old switch to new format and added test
The task
**Title:** converted old switch to new format and added test