def zero_index(size, dtype="int64"):
    """Create a index with provided size initialized to zero

    Parameters
    ----------
    size: int
    """
    return Index(
        F.zeros((size,), dtype=F.data_type_dict[dtype], ctx=F.cpu()),
        dtype=dtype,
    )
Create a index with provided size initialized to zero

    Parameters
    ----------
    size: int
    
python/dgl/utils/internal.py