code: def test_function_selector_could_match():
      # should return True
      obj = go.layout.Annotation(x=1, y=2, text="pat metheny")
  
      def _sel(d):
          return (
              d["x"] == 1 and d["y"] == 2 and d["text"] == "pat metheny"
          )
  
      assert BaseFigure._selector_matches(obj, _sel) == True
  
file_path: plotly.py/packages/python/plotly/plotly/tests/test_core/test_update_objects/test_selector_matches.py
imports: import plotly.graph_objects
  from plotly.basedatatypes import BaseFigure
label_desc: Use image node_id 9 for calling a global function with example usage: test_function_selector_could_match() and returns: unknown