code: def test_model_loaded_from_old_config_prediction_works(tmpdir):
      # Titanic model based on 0.5.3.
      old_model_url = "https://predibase-public-us-west-2.s3.us-west-2.amazonaws.com/ludwig_unit_tests/old_model.zip"
      old_model_filename = wget.download(old_model_url, tmpdir)
      with zipfile.ZipFile(old_model_filename, "r") as zip_ref:
          zip_ref.extractall(tmpdir)
      example_data = {
          "PassengerId": 892,
          "Pclass": 3,
          "Name": "Kelly, Mr. James",
          "Sex": "male",
          "Age": 34.5,
          "SibSp": 0,
          "Parch": 0,
          "Ticket": "330911",
          "Fare": 7.8292,
          "Cabin": None,
          "Embarked": "Q",
      }
      test_set = pd.DataFrame(example_data, index=[0])
  
      ludwig_model = LudwigModel.load(
          os.path.join(tmpdir, "old_model/model")
      )
      predictions, _ = ludwig_model.predict(dataset=test_set)
  
      assert predictions.to_dict()["Survived_predictions"] == {0: False}
  
file_path: ludwig/tests/regression_tests/model/test_old_models.py
imports: import os
  import zipfile
  import pandas
  import pytest
  import wget
  from ludwig.api import LudwigModel
  from ludwig.data.dataset_synthesizer import build_synthetic_dataset_df
label_desc: Use image node_id 1 for calling a global function with example usage: test_model_loaded_from_old_config_prediction_works(tmpdir) without return types