docstr: Get our DeltaGenerator.
docstr_tok: ["Get","our","DeltaGenerator","."]
code: def dg(self) -> "DeltaGenerator":
      """Get our DeltaGenerator."""
      return cast("DeltaGenerator", self)
  
imports: from __future__ import annotations
  from dataclasses import dataclass
  from enum import Enum
  from typing import TYPE_CHECKING, Optional, Tuple, cast
  from typing_extensions import Literal
  from streamlit import runtime
  from streamlit.elements.image import AtomicImage, WidthBehaviour, image_to_url
  from streamlit.elements.utils import check_callback_rules, check_session_state_rules
  from streamlit.errors import StreamlitAPIException
  from streamlit.proto.Block_pb2 import Block
  from streamlit.proto.ChatInput_pb2 import ChatInput
  from streamlit.proto.Common_pb2 import StringTriggerValue
  from streamlit.proto.RootContainer_pb2 import RootContainer
  from streamlit.runtime.metrics_util import gather_metrics
  from streamlit.runtime.scriptrunner import get_script_run_ctx
  from streamlit.runtime.state import WidgetArgs, WidgetCallback, WidgetKwargs, register_widget
  from streamlit.runtime.state.common import compute_widget_id
  from streamlit.string_util import is_emoji
  from streamlit.type_util import Key, to_key
label_desc: Use image node_id 3 for calling the ChatMixin obj's underlying member method code with example usage: obj.dg() and returns: cast