docstr: write on track each time
          
docstr_tok: ["write","on","track","each","time"]
code: def write_track(self, track):
      """write on track each time"""
      self.tracks.resize(self.tracks.shape[0] + track.shape[0], axis=0)
      self.tracks[-track.shape[0] :] = track.astype(np.float32)
      self.curr_pos += track.shape[0]
  
      self.offsets.resize(self.offsets.shape[0] + 1, axis=0)
      self.offsets[-1] = self.curr_pos
  
file_path: dipy/dipy/io/dpy.py
imports: import numpy
  import h5py
  from nibabel.streamlines import ArraySequence
label_desc: Use image node_id 3 for calling the Dpy obj's underlying member method code with example usage: obj.write_track(track) without return types