code: def get_corpora_for_lang(
      parallel_corpora: List[str], lang: str
  ) -> List[str]:
      """
      Fetches list of corpora that belong to given lang
      parallel_corpora: List[str] where each element is a str with the format
      "src_lang-tgt_lang:src_corpus,tgt_corpus"
  
      Returns [] if corpora for lang is not found
      """
      corpora = []
      for parallel_corpus_config in parallel_corpora:
          lang_pair, parallel_corpus = parallel_corpus_config.split(":")
          src_lang, tgt_lang = lang_pair.split("-")
          if src_lang == lang:
              corpora.append(parallel_corpus.split(",")[0])
          if tgt_lang == lang:
              corpora.append(parallel_corpus.split(",")[1])
      return corpora
  
file_path: translate/pytorch_translate/multilingual_utils.py
imports: import argparse
  import os
  from collections import defaultdict
  from typing import Dict, List, Optional, Tuple
  from pytorch_translate.data import dictionary
label_desc: Use image node_id 5 for calling a global function with example usage: get_corpora_for_lang(parallel_corpora, lang) and returns: corpora