In the interface file, I have defined the following command:

    %rename("chls::get_num_processes") getNumProcesses();
    int getNumProcesses();

how can I import such a command in the global namespace (from the chls:: namespace)?

I have tried with

load_extension design_analysis
namespace import ::chls::get_num_processes

but it does not work. 

Any suggestion? 

Note that I do not want to directly rename the command in the global namespace, i.e.,

    %rename("get_num_processes") getNumProcesses();
    int getNumProcesses();