code: def test_load_legacy_modelresult():
      """Load legacy ModelResult."""
      fname = os.path.join(
          os.path.dirname(__file__), MODELRESULT_LMFIT_1_0
      )
      result_saved = load_modelresult(fname)
      assert result_saved is not None
  
imports: import json
  import os
  import time
  import numpy
  from numpy.testing import assert_allclose
  import pytest
  from lmfit import Parameters
  import lmfit.jsonutils
  from lmfit.lineshapes import gaussian, lorentzian
  from lmfit.model import Model, ModelResult, load_model, load_modelresult, save_model, save_modelresult
  from lmfit.models import ExponentialModel, ExpressionModel, GaussianModel, VoigtModel
label_desc: Use image node_id 7 for calling a global function with example usage: test_load_legacy_modelresult() without return types