def _is_slice_full_range(dim: IntVar, start_idx: int, end_idx: int) -> bool:
    """
    return true if start_idx and end_idx covers the full range of a slice dim
    """
    if start_idx == 0 and end_idx == MAX_INT32:
        return True
    # if it's dynamic dimension, we don't know. So, just return False
    if not isinstance(dim, IntImm):
        return False
    start_idx, end_idx = dynamic_slice.normalize_start_end_indices(
        dim.value(), start_idx, end_idx
    )
    return end_idx - start_idx >= dim.value()

    return true if start_idx and end_idx covers the full range of a slice dim
    
python/aitemplate/compiler/transform/transform_strided_slice.py