def to_dict(X):
    """Make dict-like.

    Parameters
    ----------
    X : dict
    """
    if hasattr(X, "items"):
        return X
    elif X is None:
        return {None: None}
    else:
        return {None: X}