code: def _find_legend_item(label, legend):
      for item in legend.items:
          if item.label == label:
              return item
      return None
  
file_path: bokeh/src/bokeh/plotting/_legends.py
imports: from __future__ import annotations
  import logging
  import numpy
  from ..core.properties import field, value
  from ..models import Legend, LegendItem
  from ..util.strings import nice_join
label_desc: Use image node_id 3 for calling a global function with example usage: _find_legend_item(label, legend) and returns: None, item