code: def test__configurations_from_objects():
      class SomeModel(Model):
          CONFIGURATIONS = {"yolo": {}, "les simpsons": {}}
  
      class SomeModel2(Asset):
          CONFIGURATIONS = {"yolo2": {}, "les simpsons2": {}}
  
      class ModelNoConf(Asset):
          pass
  
      configurations = _configurations_from_objects(SomeModel)
      assert "yolo" in configurations
      assert "les simpsons" in configurations
  
      configurations = _configurations_from_objects(ModelNoConf)
      assert {} == configurations
  
      configurations = _configurations_from_objects(
          [SomeModel, SomeModel2, ModelNoConf]
      )
      assert "yolo" in configurations
      assert "yolo2" in configurations
      assert "les simpsons" in configurations
      assert "les simpsons2" in configurations
  
      class Something:
          pass
  
      with pytest.raises(ValueError):
          _configurations_from_objects(Something)
  
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 4 for calling a global function with example usage: test__configurations_from_objects() without return types