code: def test_composite_hover():
      df = px.data.tips()
      hover_dict = OrderedDict(
          {
              "day": False,
              "time": False,
              "sex": True,
              "total_bill": ":.1f",
          }
      )
      fig = px.scatter(
          df,
          x="tip",
          y="total_bill",
          color="day",
          facet_row="time",
          hover_data=hover_dict,
      )
      for el in ["tip", "total_bill", "sex"]:
          assert el in fig.data[0].hovertemplate
      for el in ["day", "time"]:
          assert el not in fig.data[0].hovertemplate
      assert ":.1f" in fig.data[0].hovertemplate
  
file_path: plotly.py/packages/python/plotly/plotly/tests/test_optional/test_px/test_px_hover.py
imports: import plotly.express
  import numpy
  import pandas
  import pytest
  from collections import OrderedDict
label_desc: Use image node_id 3 for calling a global function with example usage: test_composite_hover() without return types