code: def test_waypoints_pandas_df(self):
      pd = pytest.importorskip("pandas")
      waypoints = pd.DataFrame.from_records(
          self.waypoints, columns=["latitude", "longitude"]
      )
      layer = Directions(self.start, self.end, waypoints=waypoints)
      assert layer.waypoints == self.waypoints
  
imports: import unittest
  import pytest
  import traitlets
  from ..directions import Directions, DEFAULT_STROKE_COLOR
label_desc: Use image node_id 8 for calling the DirectionsLayer obj's underlying member method code with example usage: obj.test_waypoints_pandas_df() without return types