code: def swap_out_optimizer_state(self, parameter, async_swap):
      self._start_timer(SWAP_OUT_STATE_TIMER)
  
      if self.swap_ops[ASYNC_SWAP_OUT]:
          self._start_timer(ASYNC_SWAP_OUT_STATE_TIMER)
          self._complete_swap_out(ASYNC_SWAP_OUT)
          self._stop_timer(ASYNC_SWAP_OUT_STATE_TIMER)
          self.timer_names.add(ASYNC_SWAP_OUT_STATE_TIMER)
  
      assert self.swap_ops[SYNC_SWAP_IN] is not None
      assert not self.swap_ops[SYNC_SWAP_IN].wait_required
      swap_op = self._swap_out_optimizer_state(
          aio_handle=self.write_aio_handle,
          parameter=parameter,
          swap_in_op=self.swap_ops[SYNC_SWAP_IN],
      )
      self.swap_ops[SYNC_SWAP_IN] = None
  
      if self.async_swap_out and async_swap:
          self.swap_ops[ASYNC_SWAP_OUT] = swap_op
      else:
          self.swap_ops[SYNC_SWAP_OUT] = swap_op
          self._complete_swap_out(SYNC_SWAP_OUT)
  
      self._stop_timer(SWAP_OUT_STATE_TIMER)
      self.timer_names.add(SWAP_OUT_STATE_TIMER)
  
imports: from deepspeed.ops.op_builder import AsyncIOBuilder
  from deepspeed import comm
  from deepspeed.runtime.swap_tensor.constants import *
  from deepspeed.runtime.swap_tensor.utils import swap_in_tensors, swap_out_tensors, print_object
  from deepspeed.runtime.swap_tensor.async_swapper import AsyncTensorSwapper
  from deepspeed.runtime.swap_tensor.utils import get_sized_buffer
  from deepspeed.runtime.swap_tensor.optimizer_utils import OptimizerSwapper
label_desc: Use image node_id 6 for calling the PipelinedOptimizerSwapper obj's underlying member method code with example usage: obj.swap_out_optimizer_state(parameter, async_swap) without return types