code: def _create(
      parent: DeltaGenerator,
      label: str,
      expanded: bool = False,
      state: States = "running",
  ) -> StatusContainer:
      expandable_proto = BlockProto.Expandable()
      expandable_proto.expanded = expanded
      expandable_proto.label = label or ""
  
      if state == "running":
          expandable_proto.icon = "spinner"
      elif state == "complete":
          expandable_proto.icon = "check"
      elif state == "error":
          expandable_proto.icon = "error"
      else:
          raise StreamlitAPIException(
              f"Unknown state ({state}). Must be one of 'running', 'complete', or 'error'."
          )
  
      block_proto = BlockProto()
      block_proto.allow_empty = True
      block_proto.expandable.CopyFrom(expandable_proto)
  
      delta_path: List[int] = (
          parent._active_dg._cursor.delta_path
          if parent._active_dg._cursor
          else []
      )
  
      status_container = cast(
          StatusContainer,
          parent._block(
              block_proto=block_proto, dg_type=StatusContainer
          ),
      )
  
      # Apply initial configuration
      status_container._delta_path = delta_path
      status_container._current_proto = block_proto
      status_container._current_state = state
  
      # We need to sleep here for a very short time to prevent issues when
      # the status is updated too quickly. If an .update() directly follows the
      # the initialization, sometimes only the latest update is applied.
      # Adding a short timeout here allows the frontend to render the update before.
      time.sleep(0.05)
  
      return status_container
  
file_path: streamlit/lib/streamlit/elements/lib/mutable_status_container.py
imports: from __future__ import annotations
  import time
  from types import TracebackType
  from typing import List, Optional, Type, cast
  from typing_extensions import Literal, TypeAlias
  from streamlit.cursor import Cursor
  from streamlit.delta_generator import DeltaGenerator, _enqueue_message
  from streamlit.errors import StreamlitAPIException
  from streamlit.proto.Block_pb2 import Block
  from streamlit.proto.ForwardMsg_pb2 import ForwardMsg
label_desc: Use image node_id 1 for calling the StatusContainer obj's underlying member method code with example usage: obj._create(parent, label, expanded, state) and returns: status_container