code: def repeat_split_log(split_log, results_len):
      if isinstance(split_log, collections.abc.Iterable):
          n_repeat = results_len // len(split_log)
          # The logic below makes [1, 2, 3] into [1, 1, 1, 2, 2, 2, 3, 3, 3] for n_repeat=3
          return list(
              chain.from_iterable(zip(*repeat(split_log, n_repeat)))
          )
      else:
          return split_log
  
imports: import collections.abc
  from datetime import datetime
  from itertools import chain, repeat
  import pandas
  from toolz import curry
  from numpy import nan
label_desc: Use image node_id 9 for calling a global function with example usage: repeat_split_log(split_log, results_len) and returns: list, split_log