code: def test_lazy_loading_dependencies():
      class Model0(Asset):
          CONFIGURATIONS = {"model0": {}}
  
          def _load(self):
              self.some_attribute = "ok"
  
      class Model1(Model):
          CONFIGURATIONS = {
              "model1": {"model_dependencies": {"model0"}}
          }
  
          def _load(self):
              self.some_attribute = self.model_dependencies[
                  "model0"
              ].some_attribute
  
          def _predict(self, item):
              return self.some_attribute
  
      p = ModelLibrary(
          models=[Model1, Model0], settings={"lazy_loading": True}
      )
      m = p.get("model1")
      assert m({}) == "ok"
      assert m.model_dependencies["model0"].some_attribute == "ok"
      assert m.some_attribute == "ok"
  
imports: import asyncio
  import os
  import pytest
  from modelkit.assets.errors import AssetDoesNotExistError, InvalidAssetSpecError
  from modelkit.core import errors
  from modelkit.core.library import ConfigurationNotFoundException, ModelLibrary, download_assets, load_model
  from modelkit.core.model import Asset, AsyncModel, Model
  from modelkit.core.model_configuration import ModelConfiguration, _configurations_from_objects, configure, list_assets
  from modelkit.core.settings import LibrarySettings
  from tests import TEST_DIR, testmodels
  from tests.assets.test_versioning import test_versioning
label_desc: Use image node_id 9 for calling a global function with example usage: test_lazy_loading_dependencies() and returns: self