Using Flask's configuration system, implement a function build namespaced config in task module.py that…
Using Flask's configuration system, implement a function build namespaced config in task module.py that…: a task in repo2rlenv-code-instruct (Harbor dataset). Specifically, build namespaced config(prefix, mapping, obj=None) should: 1. Create a Flask app instance. 2. Load mapping into the app's…
The task
Specifically, `build_namespaced_config(prefix, mapping, obj=None)` should: 1. Create a Flask app instance. 2. Load `mapping` into the app's config via `from_mapping`. 3. If `obj` is provided, load it via `from_object`. 4. Return the result of `get_namespace(prefix)` on the app's config.
Part of FineEnvs/repo2rlenv-code-instruct.