class_docstr: Dataset based on the official ISO-639 code table,
  mapping all language code variations (639-1, 639-2, 639-3) to each other.
  
  Source: https://iso639-3.sil.org/code_tables/639/data
class_docstr_tok: ["Dataset","based","on","the","official","ISO-639","code","table",",","mapping","all","language","code","variations","(","639-1",",","639-2",",","639-3",")","to","each","other",".","Source",":","https",":","\/\/iso639-3.sil.org\/code_tables\/639\/data"]
docstr: Args:
      exclude
  
  Returns:
      Dict[str, str]
docstr_tok: ["Args",":","exclude","Returns",":","Dict","[","str",",","str","]"]
code: def load(self, exclude: Optional[Set[str]] = None) -> Dict[str, str]:
      """
      Args:
          exclude
  
      Returns:
          Dict[str, str]
      """
      rows = tio.read_csv(
          self.data_dir.joinpath(self.filename),
          delimiter="\t",
          fieldnames=[
              "Id",
              "Part2B",
              "Part2T",
              "Part1",
              "Scope",
              "Language_Type",
              "Ref_Name",
              "Comment",
          ],
          quoting=1,
      )
      lang_map = {
          row["Id"]: row["Part1"]
          for row in rows
          if row.get("Part1")
          and (exclude is None or row["Part1"] not in exclude)
      }
      LOGGER.info(
          "loaded IsoLangResource data:\n%s ...",
          sorted(lang_map.items())[:5],
      )
      return lang_map
  
imports: from __future__ import annotations
  import logging
  import operator
  import pathlib
  import random
  import re
  from typing import Dict, Iterable, List, Optional, Set, Tuple
  from cytoolz import itertoolz
  import textacy
  import textacy.utils
  from textacy import io
label_desc: Use image node_id 3 for calling the IsoLangResource obj's underlying member method code with example usage: obj.load(exclude) and returns: lang_map