code: def create_serialized_file(work_dir, session_mocker, model_config):
      """
      This fixture creates the the simplified DLRM model and saves its satte_dict to disk.
      """
      script_path = EXAMPLE_ROOT_DIR / "create_dlrm_mar.py"
      create_dlrm_mar = test_utils.load_module_from_py_file(
          script_path.as_posix()
      )
      sys.modules["create_dlrm_mar"] = create_dlrm_mar
  
      session_mocker.patch(
          "dlrm_factory.create_default_model_config", model_config
      )
  
      MODEL_PT_FILE = work_dir / "dlrm.pt"
  
      torch.manual_seed(42 * 42)
      create_dlrm_mar.create_pt_file(MODEL_PT_FILE)
  
      return MODEL_PT_FILE
  
file_path: serve/test/pytest/test_example_torchrec_dlrm.py
imports: import json
  import shutil
  import sys
  from pathlib import Path
  import pytest
  import requests
  import test_utils
  import torch
  from model_archiver import ModelArchiverConfig
  from ts.torch_handler.unit_tests.test_utils.mock_context import MockContext
label_desc: Use image node_id 3 for calling a global function with example usage: create_serialized_file(work_dir, session_mocker, model_config) and returns: MODEL_PT_FILE