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
  import textwrap
  from typing import TYPE_CHECKING, NamedTuple, cast
  from typing_extensions import Literal
  from streamlit import runtime
  from streamlit.errors import StreamlitAPIException
  from streamlit.proto import Block_pb2
  from streamlit.runtime.metrics_util import gather_metrics
  from streamlit.runtime.scriptrunner import ScriptRunContext, get_script_run_ctx
  from streamlit.runtime.scriptrunner.script_run_context import dg_stack
  from streamlit.runtime.state import WidgetArgs, WidgetCallback, WidgetKwargs
label_desc: Use image node_id 4 for calling the FormMixin obj's underlying member method code with example usage: obj.dg() and returns: cast