code: def test_weighted_numpy_array(self):
      import numpy as np
  
      locations = np.array(self.locations)
      weights = np.array(self.weights)
      heatmap = heatmap_layer(locations, weights=weights)
      state = heatmap.get_state()
      assert state["weights"] == self.weights
      assert state["locations"] == self.locations
  
imports: import unittest
  import pytest
  import traitlets
  from ..heatmap import _HeatmapOptionsMixin, heatmap_layer, Heatmap, WeightedHeatmap
  from ..geotraitlets import InvalidPointException, InvalidWeightException
label_desc: Use image node_id 3 for calling the HeatmapLayer obj's underlying member method code with example usage: obj.test_weighted_numpy_array() without return types