class_docstr: Class to keep track of information on a sub-dataset of OPUS.
docstr: Sub-dataset of OPUS.
  
  Args:
    name: `string`, a unique dataset identifier.
    description: `string`, a description of the dataset.
    homepage: `string`, homepage of the dataset.
    url: `string`, download url for the dataset.
    languages: `<list>(string)`, a list of supported languages.
docstr_tok: ["Sub-dataset","of","OPUS",".","Args",":","name",":","`","string","`",",","a","unique","dataset","identifier",".","description",":","`","string","`",",","a","description","of","the","dataset",".","homepage",":","`","string","`",",","homepage","of","the","dataset",".","url",":","`","string","`",",","download","url","for","the","dataset",".","languages",":","`","<","list",">","(","string",")","`",",","a","list","of","supported","languages","."]
code: def __init__(self, name, description, homepage, url, languages):
      """Sub-dataset of OPUS.
  
      Args:
        name: `string`, a unique dataset identifier.
        description: `string`, a description of the dataset.
        homepage: `string`, homepage of the dataset.
        url: `string`, download url for the dataset.
        languages: `<list>(string)`, a list of supported languages.
      """
      self.name = name
      self.description = description
      self.homepage = homepage
      self.url = url
  
      sorted_languages = sorted(languages)
      language_pairs = []
      for idx, source in enumerate(sorted_languages):
          for target in sorted_languages[idx + 1 :]:
              language_pairs.append((source, target))
  
      self.language_pairs = language_pairs
  
file_path: datasets/tensorflow_datasets/datasets/opus/opus_dataset_builder.py
imports: import os
  from absl import logging
  from etils import epath
  import tensorflow_datasets.public_api
label_desc: Use image node_id 1 to create a new SubDataset object  with example: obj = SubDataset(name, description, homepage, url, languages)