class_docstr: BuilderConfig for MovieLens dataset.
docstr: Constructs a MovieLensConfig.
  
  Args:
    format_version: a string to identify the format of the dataset, one of
      '_FORMAT_VERSIONS'.
    table_option: a string to identify the table to expose, one of
      '_TABLE_OPTIONS'.
    download_url: a string url for downloading the dataset.
    parsing_fn: a callable for parsing the data.
    **kwargs: keyword arguments forwarded to super.
  
  Raises:
    ValueError: if format_version is not one of '_FORMAT_VERSIONS' or if
        table_option is not one of '_TABLE_OPTIONS'.
docstr_tok: ["Constructs","a","MovieLensConfig",".","Args",":","format_version",":","a","string","to","identify","the","format","of","the","dataset",",","one","of","'_FORMAT_VERSIONS","'",".","table_option",":","a","string","to","identify","the","table","to","expose",",","one","of","'_TABLE_OPTIONS","'",".","download_url",":","a","string","url","for","downloading","the","dataset",".","parsing_fn",":","a","callable","for","parsing","the","data",".","*","*","kwargs",":","keyword","arguments","forwarded","to","super",".","Raises",":","ValueError",":","if","format_version","is","not","one","of","'_FORMAT_VERSIONS","'","or","if","table_option","is","not","one","of","'_TABLE_OPTIONS","'","."]
code: def __init__(
      self,
      format_version: Optional[str] = None,
      table_option: Optional[str] = None,
      download_url: Optional[str] = None,
      parsing_fn: Optional[
          Callable[
              [str],
              Iterator[Tuple[int, Dict[str, Any]]],
          ]
      ] = None,
      **kwargs,
  ) -> None:
      """Constructs a MovieLensConfig.
  
      Args:
        format_version: a string to identify the format of the dataset, one of
          '_FORMAT_VERSIONS'.
        table_option: a string to identify the table to expose, one of
          '_TABLE_OPTIONS'.
        download_url: a string url for downloading the dataset.
        parsing_fn: a callable for parsing the data.
        **kwargs: keyword arguments forwarded to super.
  
      Raises:
        ValueError: if format_version is not one of '_FORMAT_VERSIONS' or if
            table_option is not one of '_TABLE_OPTIONS'.
      """
      if not format_version or format_version not in _FORMAT_VERSIONS:
          raise ValueError(
              "format_version must be one of %s." % _FORMAT_VERSIONS
          )
      if not table_option or table_option not in _TABLE_OPTIONS:
          raise ValueError(
              "table_option must be one of %s." % _TABLE_OPTIONS
          )
      super(MovieLensConfig, self).__init__(**kwargs)
      self._format_version = format_version
      self._table_option = table_option
      self._download_url = download_url
      self._parsing_fn = parsing_fn
  
imports: from __future__ import annotations
  import os
  import textwrap
  from typing import Any, Callable, Dict, Iterator, List, Optional, Tuple
  from absl import logging
  import numpy
  import tensorflow_datasets.public_api
  from tensorflow_datasets.structured import movielens_parsing
label_desc: Use image node_id 1 to create a new MovieLensConfig object from inherited base classes: tfds.core with example: obj = MovieLensConfig(format_version, table_option, download_url, parsing_fn)