def indptr_edge_ids_fake(indptr, dtype, offset, output_size):
        """Fake implementation of indptr_edge_ids for torch.compile() support."""
        if output_size is None:
            output_size = torch.library.get_ctx().new_dynamic_size()
        if dtype is None:
            dtype = offset.dtype
        return indptr.new_empty(output_size, dtype=dtype)
Fake implementation of indptr_edge_ids for torch.compile() support.
python/dgl/graphbolt/base.py