code: def seq_gen(
      len_seq, data_seq, offset, n_frame, n_route, day_slot, C_0=1
  ):
      """Generate data in the form of standard sequence unit."""
      n_slot = day_slot - n_frame + 1
  
      tmp_seq = np.zeros((len_seq * n_slot, n_frame, n_route, C_0))
      for i in range(len_seq):
          for j in range(n_slot):
              sta = (i + offset) * day_slot + j
              end = sta + n_frame
              tmp_seq[i * n_slot + j, :, :, :] = np.reshape(
                  data_seq[sta:end, :], [n_frame, n_route, C_0]
              )
      return tmp_seq
  
file_path: PGL/legacy/examples/stgcn/data_loader/data_utils.py
imports: import numpy
  import pandas
  from utils.math_utils import z_score
label_desc: Use image node_id 1 for calling a global function with example usage: seq_gen(len_seq, data_seq, offset, n_frame, n_route, day_slot, C_0) and returns: tmp_seq