code: def sync_push(self, idx=None):
      if idx is None:
          for idx in range(self.pool_size):
              self._sync_push(idx)
          self._push_index = -1
      else:
          self._sync_push(idx)
  
imports: import numpy
  import paddle
  from paddle.framework import core
  from paddle.device import cuda
  from pgl.utils.logger import log
label_desc: Use image node_id 12 for calling the StreamPool obj's underlying member method code with example usage: obj.sync_push(idx) without return types