code: def test_load_item_df(
      size,
      num_movies,
      movie_example,
      title_example,
      genres_example,
      year_example,
      tmp,
  ):
      """Test movielens item data load (not rating data)"""
      df = load_item_df(size, local_cache_path=tmp, title_col="title")
      assert len(df) == num_movies
      # movie_col and title_col should be loaded
      assert len(df.columns) == 2
      assert df["title"][0] == title_example
  
      # Test title and genres
      df = load_item_df(
          size,
          local_cache_path=tmp,
          movie_col="item",
          genres_col="genres",
          year_col="year",
      )
      assert len(df) == num_movies
      # movile_col, genres_col and year_col
      assert len(df.columns) == 3
  
      assert df["item"][0] == movie_example
      assert df["genres"][0] == genres_example
      assert df["year"][0] == year_example
      del df
      gc.collect()
  
imports: import os
  import gc
  import pandas
  from pandas.core.series import Series
  import pytest
  from pytest_mock import MockerFixture
  from recommenders.utils.constants import DEFAULT_GENRE_COL, DEFAULT_TITLE_COL
  from recommenders.datasets.movielens import MockMovielensSchema
  from recommenders.datasets.movielens import load_pandas_df, load_spark_df, load_item_df, download_movielens, extract_movielens
  from recommenders.datasets.movielens import DATA_FORMAT, MOCK_DATA_FORMAT, DEFAULT_HEADER, DEFAULT_ITEM_COL, DEFAULT_USER_COL
label_desc: Use image node_id 10 for calling a global function with example usage: test_load_item_df(size, num_movies, movie_example, title_example, genres_example, year_example, tmp) without return types