code: def test_formatted_hover_and_labels():
      df = px.data.tips()
      fig = px.scatter(
          df,
          x="tip",
          y="total_bill",
          hover_data={"total_bill": ":.1f"},
          labels={"total_bill": "Total bill"},
      )
      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 5 for calling a global function with example usage: test_formatted_hover_and_labels() without return types