Empty type name or field name raises IndexError instead of ValueError in namedtuple / namedlist
Empty type name or field name raises IndexError instead of ValueError in namedtuple / namedlist: a task in Repo2RLEnv R2E-Gym / SWEGEN (Harbor dataset). Passing an empty string as a field name or typename to namedtuple or namedlist raises an IndexError instead of the expected ValueError .
The task
Passing an empty string as a field name or typename to `namedtuple` or `namedlist` raises an `IndexError` instead of the expected `ValueError`.
Part of FineEnvs/repo2rlenv-r2e-gym.