code: def load_model(
      model_name,
      configuration: Optional[
          Dict[str, Union[Dict[str, Any], ModelConfiguration]]
      ] = None,
      models: Optional[LibraryModelsType] = None,
      model_type: Optional[Type[T]] = None,
  ) -> T:
      """
      Loads an modelkit model without the need for a ModelLibrary.
      This is useful for development, and should be avoided in production
      code.
      """
      lib = ModelLibrary(
          required_models=[model_name],
          models=models,
          configuration=configuration,
          settings={"lazy_loading": True},
      )
      return lib.get(model_name, model_type=model_type)
  
imports: import collections
  import os
  import re
  from typing import Any, Dict, List, Mapping, Optional, Set, Tuple, Type, TypeVar, Union, cast
  import humanize
  import pydantic
  import redis
  from asgiref.sync import AsyncToSync
  from rich.console import Console
  from rich.tree import Tree
  from structlog import get_logger
  import modelkit.assets
  from modelkit.assets.manager import AssetsManager
  from modelkit.assets.settings import AssetSpec
  from modelkit.core import errors
  from modelkit.core.model import Asset, AsyncModel, Model
  from modelkit.core.model_configuration import ModelConfiguration, configure, list_assets
  from modelkit.core.settings import LibrarySettings, NativeCacheSettings, RedisSettings
  from modelkit.core.types import LibraryModelsType
  from modelkit.utils.cache import Cache, NativeCache, RedisCache
  from modelkit.utils.memory import PerformanceTracker
  from modelkit.utils.pretty import describe
  from modelkit.utils.redis import RedisCacheException
label_desc: Use image node_id 1 for calling a global function with example usage: load_model(model_name, configuration, models, model_type) and returns: lib