code: def split_list(
      input_list: Iterable[str],
      include_condition: Callable[[str], bool],
  ) -> Tuple[List[str], List[str]]:
      """
      Splits a list into two based on a condition applied to each element.
      """
      matching_list = [x for x in input_list if include_condition(x)]
      other_list = [x for x in input_list if x not in matching_list]
      return matching_list, other_list
  
file_path: ParlAI/projects/roscoe/utils.py
imports: import numpy
  import os
  import pathlib
  from nltk.tokenize import sent_tokenize
  from typing import Callable, Dict, Iterable, List, Tuple
  import torch
label_desc: Use image node_id 8 for calling a global function with example usage: split_list(input_list, include_condition) and returns: matching_list,  other_list