code: def test_set_locations_dataframe(self):
      pd = pytest.importorskip("pandas")
      heatmap = Heatmap(locations=self.locations)
      df = pd.DataFrame.from_records(
          self.locations * 2, columns=["longitude", "latitude"]
      )
      heatmap.locations = df
      assert heatmap.locations == self.locations * 2
  
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 TestHeatmap obj's underlying member method code with example usage: obj.test_set_locations_dataframe() without return types