code: def row_col(position, n_cols=5):
      idx_row = (position - 1) // n_cols
      idx_col = position - n_cols * idx_row - 1
      return idx_row, idx_col
  
imports: import numpy
  import matplotlib.pyplot
  import matplotlib.colors
  from tslearn.preprocessing import TimeSeriesScalerMinMax
  from tslearn.barycenters import softdtw_barycenter
  from tslearn.datasets import CachedDatasets
label_desc: Use image node_id 1 for calling a global function with example usage: row_col(position, n_cols) and returns: idx_row,  idx_col