code: def test_string_selector_matches_type_key():
      assert BaseFigure._selector_matches(dict(type="bar"), "bar")
      assert (
          BaseFigure._selector_matches(dict(type="scatter"), "bar")
          == False
      )
  
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 11 for calling a global function with example usage: test_string_selector_matches_type_key() without return types