class_docstr: Tests for helper functions in movielens_parsing.
class_docstr_tok: ["Tests","for","helper","functions","in","movielens_parsing","."]
docstr: Test for parse_1m_movies_data.
docstr_tok: ["Test","for","parse_1m_movies_data","."]
code: def test_parse_1m_movies_data(self):
      """Test for parse_1m_movies_data."""
      fake_dir_path = os.path.join(
          tfds.testing.fake_examples_dir(),
          "movielens",
          "ml-1m",
      )
      movies_generator = movielens_parsing.parse_1m_movies_data(
          fake_dir_path
      )
      expected_result = [
          (
              0,
              {
                  "movie_id": "1",
                  "movie_genres": ["Fantasy", "Children"],
                  "movie_title": "Fake Movie (2005)",
              },
          ),
          (
              1,
              {
                  "movie_id": "2",
                  "movie_genres": ["Crime", "Sci-Fi", "Western"],
                  "movie_title": "Dog Movie (1994)",
              },
          ),
          (
              2,
              {
                  "movie_id": "3",
                  "movie_genres": ["Film-Noir"],
                  "movie_title": "Non-existent Movie (2003)",
              },
          ),
          (
              3,
              {
                  "movie_id": "4",
                  "movie_genres": ["Comedy", "Drama", "Romance"],
                  "movie_title": "Owl Movie (2018)",
              },
          ),
          (
              4,
              {
                  "movie_id": "5",
                  "movie_genres": ["Comedy", "Romance"],
                  "movie_title": "Cat Movie (2018)",
              },
          ),
          (
              5,
              {
                  "movie_id": "6",
                  "movie_genres": ["Drama", "War"],
                  "movie_title": "Test Movie (2003)",
              },
          ),
          (
              6,
              {
                  "movie_id": "7",
                  "movie_genres": ["Horror"],
                  "movie_title": "Rabbit Movie (1999)",
              },
          ),
          (
              7,
              {
                  "movie_id": "8",
                  "movie_genres": ["Mystery", "War"],
                  "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 5 for calling the MovieLensUtilsTest obj's underlying member method code with example usage: obj.test_parse_1m_movies_data() without return types