get_trajectory_file
python
get_trajectory_file(result_or_data: Any) -> EpisodeTrajectoryDataSource | NoneExtract a trajectory wrapper from a multi-env result or step-result data.
Parameters:
result_or_data(Any) – The wrapped result object or step-result data dictionary.
Returns:
EpisodeTrajectoryDataSource | None– The trajectory, orNone.