<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _write_named_sockets(self, socket_map):
 """Write multiple named sockets using a socket mapping."""

    for socket_name, socket_info in socket_map.items():
      self.write_named_socket(socket_name, socket_info)