code: def bench_trajectory_distances_and_speeds(
      benchmark, sorted_trajectories
  ):
      length = len(cudf.Series(sorted_trajectories[1]).unique())
      points = cuspatial.GeoSeries.from_points_xy(
          cudf.DataFrame(
              {
                  "x": sorted_trajectories[0]["x"],
                  "y": sorted_trajectories[0]["y"],
              }
          ).interleave_columns()
      )
      benchmark(
          cuspatial.trajectory_distances_and_speeds,
          length,
          sorted_trajectories[0]["object_id"],
          points,
          sorted_trajectories[0]["timestamp"],
      )
  
imports: import cupy
  import geopandas
  import pytest
  import cudf
  import cuspatial
label_desc: Use image node_id 4 for calling a global function with example usage: bench_trajectory_distances_and_speeds(benchmark, sorted_trajectories) without return types