code: def wait_for_close(
          raiden: 'RaidenService',
          payment_network_id: PaymentNetworkID,
          token_address: TokenAddress,
          channel_ids: List[ChannelID],
          retry_timeout: float,
  ) -> None:
      
      return wait_for_channel_in_states(
          raiden=raiden,
          payment_network_id=payment_network_id,
          token_address=token_address,
          channel_ids=channel_ids,
          retry_timeout=retry_timeout,
          target_states=CHANNEL_AFTER_CLOSE_STATES,
      )
docs: Wait until all channels are closed.
  
      Note:
          This does not time out, use gevent.Timeout.