code: def test_nextitnet_component_definition(
      sequential_files, deeprec_config_path
  ):
      yaml_file_nextitnet = os.path.join(
          deeprec_config_path, "nextitnet.yaml"
      )
      data_path, user_vocab, item_vocab, cate_vocab = sequential_files
  
      # NextItNet model
      hparams_nextitnet = prepare_hparams(
          yaml_file_nextitnet,
          train_num_ngs=4,
          embed_l2=0.0,
          layer_l2=0.0,
          learning_rate=0.001,
          epochs=1,
          MODEL_DIR=os.path.join(data_path, "model"),
          SUMMARIES_DIR=os.path.join(data_path, "summary"),
          user_vocab=user_vocab,
          item_vocab=item_vocab,
          cate_vocab=cate_vocab,
          need_sample=True,
      )
  
      model_nextitnet = NextItNetModel(
          hparams_nextitnet, NextItNetIterator
      )
      assert model_nextitnet.logit is not None
      assert model_nextitnet.update is not None
      assert model_nextitnet.iterator is not None
      assert model_nextitnet.hparams is not None
      assert model_nextitnet.hparams.model_type == "NextItNet"
      assert model_nextitnet.hparams.epochs == 1
      assert model_nextitnet.hparams.batch_size == 400
      assert model_nextitnet.hparams.learning_rate == 0.001
      assert model_nextitnet.hparams.loss == "softmax"
      assert model_nextitnet.hparams.optimizer == "adam"
      assert model_nextitnet.hparams.train_num_ngs == 4
      assert model_nextitnet.hparams.embed_l2 == 0.0
      assert model_nextitnet.hparams.layer_l2 == 0.0
      assert model_nextitnet.hparams.need_sample is True
  
file_path: recommenders/tests/unit/recommenders/models/test_deeprec_model.py
imports: import os
  import pytest
  from recommenders.datasets import movielens
  from recommenders.datasets.amazon_reviews import download_and_extract, data_preprocessing
  from recommenders.datasets.python_splitters import python_stratified_split
label_desc: Use image node_id 7 for calling a global function with example usage: test_nextitnet_component_definition(sequential_files, deeprec_config_path) without return types