code: def list(  # pylint: disable=redefined-builtin
      tag: t.Optional[t.Union[Tag, str]] = None,
      *,
      _model_store: "ModelStore" = Provide[
          BentoMLContainer.model_store
      ],
  ) -> t.List["Model"]:
      return _model_store.list(tag)
  
imports: from __future__ import annotations
  import typing
  from contextlib import contextmanager
  from types import ModuleType
  from typing import TYPE_CHECKING
  from simple_di import Provide
  from simple_di import inject
  from ._internal.configuration.containers import BentoMLContainer
  from ._internal.models import Model
  from ._internal.models import ModelContext
  from ._internal.models import ModelOptions
  from ._internal.tag import Tag
  from ._internal.utils import calc_dir_size
  from ._internal.utils.analytics import ModelSaveEvent
  from ._internal.utils.analytics import track
  from .exceptions import BentoMLException
label_desc: Use image node_id 1 for calling a global function with example usage: list(tag) and returns: _model_store