code: def split_file_list(
      file_list, train_split=0.7, val_split=0.2, test_split=0.2
  ):
      random.shuffle(file_list)
      files = len(file_list)
      train_items = round(files * train_split)
      validation_items = round(files * val_split)
      train = file_list[:train_items]
      validation = file_list[
          train_items : train_items + validation_items
      ]
      test = file_list[train_items + validation_items :]
  
      return train, validation, test
  
imports: import shutil, random, glob, os, logging
  from pathlib import Path
label_desc: Use image node_id 1 for calling a global function with example usage: split_file_list(file_list, train_split, val_split, test_split) and returns: train,  validation,  test