code: def test_prepare_hparams(
      deeprec_resource_path, must_exist_attributes
  ):
      data_path = os.path.join(deeprec_resource_path, "xdeepfm")
      yaml_file = os.path.join(data_path, "xDeepFM.yaml")
      if not os.path.exists(yaml_file):
          download_deeprec_resources(
              "https://recodatasets.z20.web.core.windows.net/deeprec/",
              data_path,
              "xdeepfmresources.zip",
          )
      hparams = prepare_hparams(yaml_file)
      assert hasattr(hparams, must_exist_attributes)
  
label_desc: Use image node_id 1 for calling a global function with example usage: test_prepare_hparams(deeprec_resource_path, must_exist_attributes) without return types