def _generate_routes_m(self, namespace):
with self.block_m(<EOL>fmt_routes_class(namespace.name, self.args.auth_type)):<EOL><INDENT>init_args = fmt_func_args_declaration([(<EOL>'<STR_LIT>', '<STR_LIT>'.format(self.args.transport_client_name))])<EOL>with self.block_func(<EOL>func='<STR_LIT>', args=init_args, return_type='<STR_LIT>'):<EOL><INDENT>self.emit('<STR_LIT>')<EOL>with self.block_init():<EOL><INDENT>self.emit('<STR_LIT>')<EOL><DEDENT><DEDENT>self.emit()<EOL>style_to_request = json.loads(self.args.z__style_to_request)<EOL>for route in namespace.routes:<EOL><INDENT>if (route.attrs.get('<STR_LIT>') != self.args.auth_type<EOL>and route.attrs.get('<STR_LIT>') != '<STR_LIT>'):<EOL><INDENT>continue<EOL><DEDENT>route_type = route.attrs.get('<STR_LIT>')<EOL>client_args = json.loads(self.args.client_args)<EOL>if route_type in client_args.keys():<EOL><INDENT>for args_data in client_args[route_type]:<EOL><INDENT>task_type_key, type_data_dict = tuple(args_data)<EOL>task_type_name = style_to_request[task_type_key]<EOL>func_suffix = type_data_dict[<NUM_LIT:0>]<EOL>extra_args = [<EOL>tuple(type_data[:-<NUM_LIT:1>])<EOL>for type_data in type_data_dict[<NUM_LIT:1>]<EOL>]<EOL>if (is_struct_type(route.arg_data_type) and<EOL>self._struct_has_defaults(route.arg_data_type)):<EOL><INDENT>route_args, _ = self._get_default_route_args(<EOL>namespace, route)<EOL>self._generate_route_m(route, namespace,<EOL>route_args, extra_args,<EOL>task_type_name, func_suffix)<EOL><DEDENT>route_args, _ = self._get_route_args(namespace, route)<EOL>self._generate_route_m(route, namespace, route_args,<EOL>extra_args, task_type_name,<EOL>func_suffix)<EOL><DEDENT><DEDENT>else:<EOL><INDENT>task_type_name = style_to_request[route_type]<EOL>if (is_struct_type(route.arg_data_type) and<EOL>self._struct_has_defaults(route.arg_data_type)):<EOL><INDENT>route_args, _ = self._get_default_route_args(<EOL>namespace, route)<EOL>self._generate_route_m(route, namespace, route_args,<EOL>[], task_type_name, '<STR_LIT>')<EOL><DEDENT>route_args, _ = self._get_route_args(namespace, route)<EOL>self._generate_route_m(route, namespace, route_args, [],<EOL>task_type_name, '<STR_LIT>')<EOL><DEDENT><DEDENT><DEDENT>
Generates implementation file for namespace object that has as methods
        all routes within the namespace.