code: def _pop_renderer_args(kwargs):
      result = {
          attr: kwargs.pop(attr)
          for attr in RENDERER_ARGS
          if attr in kwargs
      }
      result["data_source"] = kwargs.pop("source", ColumnDataSource())
      return result
  
file_path: bokeh/src/bokeh/plotting/_renderer.py
imports: from __future__ import annotations
  import logging
  import sys
  from collections.abc import Iterable
  import numpy
  from ..core.properties import ColorSpec
  from ..models import ColumnarDataSource, ColumnDataSource, GlyphRenderer
  from ..util.strings import nice_join
  from ._legends import pop_legend_kwarg, update_legend
label_desc: Use image node_id 6 for calling a global function with example usage: _pop_renderer_args(kwargs) and returns: result