code: def test_arrayattrable_numpy():
      tips = px.data.tips()
      fig = px.scatter(
          tips,
          x="total_bill",
          y="tip",
          hover_data=[np.random.random(tips.shape[0])],
      )
      assert (
          fig.data[0]["hovertemplate"]
          == "total_bill=%{x}<br>tip=%{y}<br>hover_data_0=%{customdata[0]}<extra></extra>"
      )
      tips = px.data.tips()
      fig = px.scatter(
          tips,
          x="total_bill",
          y="tip",
          hover_data=[np.random.random(tips.shape[0])],
          labels={"hover_data_0": "suppl"},
      )
      assert (
          fig.data[0]["hovertemplate"]
          == "total_bill=%{x}<br>tip=%{y}<br>suppl=%{customdata[0]}<extra></extra>"
      )
  
imports: import plotly.express
  import plotly.graph_objects
  import numpy
  import pandas
  import pytest
  from packaging import version
  import unittest.mock
  from plotly.express._core import build_dataframe
  from pandas.testing import assert_frame_equal
label_desc: Use image node_id 9 for calling a global function with example usage: test_arrayattrable_numpy() without return types