def METHOD_NAME(action_objs, sagemaker_session):
    slack = datetime.timedelta(minutes=1)
    now = datetime.datetime.now(datetime.timezone.utc)
    action_names = [actn.action_name for actn in action_objs]
    for sort_order in ["Ascending", "Descending"]:
        action_names_listed = [
            action_listed.action_name
            for action_listed in action.Action.list(
                created_after=now - slack,
                created_before=now + slack,
                sort_by="CreationTime",
                sort_order=sort_order,
                sagemaker_session=sagemaker_session,
            )
            if action_listed.action_name in action_names
        ]
    if sort_order == "Descending":
        action_names_listed = action_names_listed[::-1]
    assert action_names == action_names_listed
    # sanity check
    assert action_names