def METHOD_NAME(plot, legend_kwarg, glyph_renderer):
    legend = _get_or_create_legend(plot)
    kwarg, value = next(iter(legend_kwarg.items()))
    _LEGEND_KWARG_HANDLERS[kwarg](value, legend, glyph_renderer)