code: def preprocess_multirc(
      examples: Dataset, *, clean_paragraphs: bool = True
  ) -> Dict[str, List[str]]:
      """Compose strings in form of paragraphs and the folllowing questions.
  
      Args:
          examples: A given dataset.
          clean_paragraphs: Whether replace spaces and digits with a single space.
  
      Returns:
          Dict[str, List[str]]: Composed strings.
  
      """
      paragraphs: List[str] = examples["paragraph"]
      questions: List[str] = examples["question"]
  
      if clean_paragraphs:
          paragraphs = [
              re.sub(
                  r"\s+",
                  " ",
                  re.sub(r"\(\d{1,2}\)", "", paragraph).strip(),
              )
              for paragraph in paragraphs
          ]
  
      contexts = [
          f"{paragraph} {question}"
          for paragraph, question in zip(paragraphs, questions)
      ]
  
      return {"context": contexts}
  
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 8 for calling a global function with example usage: preprocess_multirc(examples) and returns: dict