code: def document(self, doc: Document) -> None:
      self._document = doc
  
file_path: bokeh/src/bokeh/model/util.py
imports: from __future__ import annotations
  import logging
  from typing import TYPE_CHECKING, Any, Callable
  from ..core.has_props import HasProps, Qualified
  from ..util.dataclasses import entries, is_dataclass
label_desc: Use image node_id 3 for calling the HasDocumentRef obj's underlying member method code with example usage: obj.document(doc) without return types