code: def interleave_splits(
      splits: List[str], percentage: int = 50
  ) -> List[str]:
      """Adds a portion of `dev` (or, `test` if there's only `train` and `test`) set to the `train` set.
      Assumes that there are at two splits are passed ordered as (train, dev, test).
      Args:
          splits: list of strings
          percentage: percentage (represented as an integer value between 0 and 100)
                      of samples to extract from `dev` and add to `train`
      Returns:
          List[str] containing mixing instructions (e.g. ['train+validation[:50%]', 'validation[-50%:]'])
      """
      if len(splits) < 2:
          raise ValueError(
              "At least two splits should be passed to this function"
          )
      mixed_splits = [
          f"{splits[0]}+{splits[1]}[:{percentage}%]",
          f"{splits[1]}[-{percentage}%:]",
      ]
      if len(splits) == 3:
          mixed_splits += [splits[2]]
      return mixed_splits
  
file_path: DeepPavlov/deeppavlov/dataset_readers/huggingface_dataset_reader.py
imports: import re
  from collections import Counter
  from math import floor
  from typing import Dict, Optional, List, Union
  from datasets import load_dataset, Dataset, Features, ClassLabel, concatenate_datasets
  from deeppavlov.core.common.registry import register
  from deeppavlov.core.data.dataset_reader import DatasetReader
label_desc: Use image node_id 1 for calling a global function with example usage: interleave_splits(splits, percentage) and returns: mixed_splits