code: def test_date_in_hover():
      df = pd.DataFrame(
          {"date": ["2015-04-04 19:31:30+1:00"], "value": [3]}
      )
      df["date"] = pd.to_datetime(df["date"])
      fig = px.scatter(df, x="value", y="value", hover_data=["date"])
      assert str(fig.data[0].customdata[0][0]) == str(df["date"][0])
  
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 8 for calling a global function with example usage: test_date_in_hover() without return types