def set_extra_info(extra, name, value):
    """
    Sets optional transport information.
    
    Parameters
    ----------
    extra : `None`, `dict` of (`str`, `Any`) items
        Optional transform information.
    name : `str`
        The extra info's name.
    value : `Any`
        The value to set.
    
    Returns
    -------
    extra : `dict` of (`str`, `Any`) items
        The new transform information.
    """
    if extra is None:
        extra = {}
    
    extra[name] = value
    
    return extra