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/pyplot.py
imports: import io
  from typing import TYPE_CHECKING, Any, Optional, cast
  from typing_extensions import Final
  import streamlit.elements.image
  from streamlit import config
  from streamlit.errors import StreamlitDeprecationWarning
  from streamlit.logger import get_logger
  from streamlit.proto.Image_pb2 import ImageList
  from streamlit.runtime.metrics_util import gather_metrics
label_desc: Use image node_id 2 for calling the PyplotMixin obj's underlying member method code with example usage: obj.dg() and returns: cast