code: def _lc_fold_to_indexes(
      folds: List[Tuple[pd.Series, pd.Series]]
  ) -> List[Tuple[pd.Index, List[pd.Index]]]:
      return list(
          starmap(
              lambda train, test: (train.index, [test.index]), folds
          )
      )
  
imports: import operator
  from datetime import datetime, timedelta
  from itertools import chain, repeat, starmap
  from typing import Callable, Iterable, List, Tuple, Union
  import numpy
  import pandas
  from sklearn.model_selection import GroupKFold, KFold, StratifiedKFold
  from sklearn.utils import check_random_state
  from toolz.curried import curry, partial, pipe, assoc, accumulate, map, filter
  from fklearn.common_docstrings import splitter_return_docstring
  from fklearn.types import DateType, LogType, SplitterReturnType
label_desc: Use image node_id 5 for calling a global function with example usage: _lc_fold_to_indexes(folds) and returns: list