def add_policies_module(self, name, module, idx=None):
        if idx is None:
            idx_list = list(range(self._n_subpolicies))
        elif isinstance(idx, list) or isinstance(idx, tuple):
            idx_list = idx
        else:
            idx_list = [idx]

        for idx in idx_list:
            ptu.add_module(self._policies_modules[idx], name, module)
 def add_final_policy_module(self, name, module):
     ptu.add_module(self._final_policy_modules, name, module)
 def add_mixing_module(self, name, module):
     ptu.add_module(self._mixing_modules, name, module)
 def add_shared_module(self, name, module):
     ptu.add_module(self._shared_modules, name, module)