code: def test_trajectory_distances_and_speeds_ones():
      points = cuspatial.GeoSeries([Point(0, 0)])
      objects, traj_offsets = cuspatial.derive_trajectories(
          [1],
          points,
          [1],  # object_id  # xs  # ys  # timestamp
      )
      trajs = cuspatial.GeoSeries.from_points_xy(
          objects[["x", "y"]].interleave_columns()
      )
  
      result = cuspatial.trajectory_distances_and_speeds(
          len(traj_offsets),
          objects["object_id"],
          trajs,
          objects["timestamp"],
      )
      cudf.testing.assert_series_equal(
          result["distance"], cudf.Series([0.0]), check_names=False
      )
      cudf.testing.assert_series_equal(
          result["speed"], cudf.Series([0.0]), check_names=False
      )
  
imports: import numpy
  import pytest
  from shapely.geometry import Point
  import cudf
  import cuspatial
label_desc: Use image node_id 15 for calling a global function with example usage: test_trajectory_distances_and_speeds_ones() without return types