code: def test_trajectory_distances_and_speeds_timestamp_types(
      timestamp_type,
  ):
      points = cuspatial.GeoSeries.from_points_xy(
          cudf.DataFrame(
              {
                  "x": cudf.Series([0.0, 0.001, 0.0, 0.0]),
                  "y": cudf.Series([0.0, 0.0, 0.0, 0.001]),
              }
          ).interleave_columns()
      )
      objects, traj_offsets = cuspatial.derive_trajectories(
          # object_id
          cudf.Series([0, 0, 1, 1]),
          points,
          # timestamp
          cudf.Series(
              [0, timestamp_type[1], 0, timestamp_type[1]]
          ).astype(timestamp_type[0]),
      )
      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_frame_equal(
          result,
          cudf.DataFrame({"distance": [1.0, 1.0], "speed": [1.0, 1.0]}),
          check_names=False,
      )
  
imports: import numpy
  import pytest
  from shapely.geometry import Point
  import cudf
  import cuspatial
label_desc: Use image node_id 19 for calling a global function with example usage: test_trajectory_distances_and_speeds_timestamp_types(timestamp_type) without return types