code: def test_init(model_type, n_users, n_items):
      model = NCF(
          n_users=n_users,
          n_items=n_items,
          model_type=model_type,
          n_epochs=1,
          seed=SEED,
      )
      # model type
      assert model.model_type == model_type.lower()
      # number of users in dataset
      assert model.n_users == n_users
      # number of items in dataset
      assert model.n_items == n_items
      # dimension of gmf user embedding
      assert model.embedding_gmf_P.shape == [n_users, model.n_factors]
      # dimension of gmf item embedding
      assert model.embedding_gmf_Q.shape == [n_items, model.n_factors]
      # dimension of mlp user embedding
      assert model.embedding_mlp_P.shape == [n_users, model.n_factors]
      # dimension of mlp item embedding
      assert model.embedding_mlp_Q.shape == [n_items, model.n_factors]
  
file_path: recommenders/tests/unit/recommenders/models/test_ncf_singlenode.py
imports: import os
  import shutil
  import pytest
  import numpy
  import pandas
label_desc: Use image node_id 1 for calling a global function with example usage: test_init(model_type, n_users, n_items) without return types