code: def get_language(filepath: str) -> str:
      """Extracts language from typical UD filename"""
      return filepath.split("-")[0]
  
file_path: DeepPavlov/deeppavlov/dataset_readers/morphotagging_dataset_reader.py
imports: import sys
  from logging import getLogger
  from pathlib import Path
  from typing import Dict, List, Union, Tuple, Optional
  from deeppavlov.core.common.registry import register
  from deeppavlov.core.data.dataset_reader import DatasetReader
  from deeppavlov.core.data.utils import download_decompress, mark_done
label_desc: Use image node_id 1 for calling a global function with example usage: get_language(filepath) and returns: filepath