class_docstr: Adds language IDs to an IndexedRawTextDataset
class_docstr_tok: ["Adds","language","IDs","to","an","IndexedRawTextDataset"]
code: def __init__(
      self,
      path,
      dictionary,
      lang_id,
      append_eos=True,
      reverse_order=False,
      prepend_language_id=True,
  ):
      self.lang_id = lang_id
      self.prepend_language_id = prepend_language_id
      super(IndexedRawTextDatasetWithLangId, self).__init__(
          path=path,
          dictionary=dictionary,
          append_eos=append_eos,
          reverse_order=reverse_order,
      )
  
imports: import os
  import shutil
  import tempfile
  from typing import Dict, NamedTuple, Optional
  import numpy
  import torch
  from fairseq import data, tokenizer
  from fvcore.common.file_io import PathManager
  from pytorch_translate import constants
  from pytorch_translate.data import dictionary
label_desc: Use image node_id 1 to create a new IndexedRawTextDatasetWithLangId object from inherited base classes: data with example: obj = IndexedRawTextDatasetWithLangId(path, dictionary, lang_id, append_eos, reverse_order, prepend_language_id)