class_docstr: Tests for helper functions in movielens_parsing.
class_docstr_tok: ["Tests","for","helper","functions","in","movielens_parsing","."]
docstr: Test for parse_100k_movies_data.
docstr_tok: ["Test","for","parse_100k_movies_data","."]
code: def test_parse_100k_movies_data(self):
      """Test for parse_100k_movies_data."""
      fake_dir_path = os.path.join(
          tfds.testing.fake_examples_dir(),
          "movielens",
          "ml-100k",
      )
      movies_generator = movielens_parsing.parse_100k_movies_data(
          fake_dir_path
      )
      expected_result = [
          (
              0,
              {
                  "movie_id": "1",
                  "movie_genres": ["Unknown", "Children"],
                  "movie_title": "Fake Movie (1996)",
              },
          ),
          (
              1,
              {
                  "movie_id": "2",
                  "movie_genres": ["Western"],
                  "movie_title": "Dog Movie (1994)",
              },
          ),
          (
              2,
              {
                  "movie_id": "3",
                  "movie_genres": ["Adventure"],
                  "movie_title": "Non-existent Movie (1995)",
              },
          ),
          (
              3,
              {
                  "movie_id": "4",
                  "movie_genres": [
                      "Documentary",
                      "Film-Noir",
                      "Musical",
                  ],
                  "movie_title": "Owl Movie (1997)",
              },
          ),
          (
              4,
              {
                  "movie_id": "5",
                  "movie_genres": ["Crime", "Musical"],
                  "movie_title": "Cat Movie (1998)",
              },
          ),
          (
              5,
              {
                  "movie_id": "6",
                  "movie_genres": ["Mystery", "Romance"],
                  "movie_title": "Test Movie (2003)",
              },
          ),
          (
              6,
              {
                  "movie_id": "7",
                  "movie_genres": [
                      "Action",
                      "Comedy",
                      "Fantasy",
                      "Romance",
                  ],
                  "movie_title": "Rabbit Movie (1999)",
              },
          ),
          (
              7,
              {
                  "movie_id": "8",
                  "movie_genres": ["Documentary"],
                  "movie_title": "Tree Movie (2001)",
              },
          ),
      ]
      parsed_example_list = list(movies_generator)
      self.assertEqual(expected_result, parsed_example_list)
  
file_path: datasets/tensorflow_datasets/structured/movielens_parsing_test.py
imports: import os
  import tensorflow_datasets.public_api
  from tensorflow_datasets.structured import movielens_parsing
label_desc: Use image node_id 3 for calling the MovieLensUtilsTest obj's underlying member method code with example usage: obj.test_parse_100k_movies_data() without return types