docstr: Get our DeltaGenerator.
docstr_tok: ["Get","our","DeltaGenerator","."]
code: def dg(self) -> "DeltaGenerator":
      """Get our DeltaGenerator."""
      return cast("DeltaGenerator", self)
  
file_path: streamlit/lib/streamlit/elements/write.py
imports: import dataclasses
  import inspect
  import json
  import types
  from typing import TYPE_CHECKING, Any, List, Tuple, Type, cast
  import numpy
  from typing_extensions import Final
  from streamlit import type_util
  from streamlit.errors import StreamlitAPIException
  from streamlit.logger import get_logger
  from streamlit.runtime.metrics_util import gather_metrics
  from streamlit.runtime.state import QueryParamsProxy, SessionStateProxy
  from streamlit.string_util import is_mem_address_str, probably_contains_html_tags
  from streamlit.user_info import UserInfoProxy
label_desc: Use image node_id 2 for calling the WriteMixin obj's underlying member method code with example usage: obj.dg() and returns: cast