def identicalTensorDict(tensor, names):
    """
    Crete a dict, keys of which are names, and values are all given element(tensor).

    Parameters
    ----------
    tensor : any
        The element to be the value for all keys.
    names : list of any
        The keys of returned dict.

    Returns
    -------
    dict
        The dict that has names as keys, and tensor as values for all keys.
    """
    res = dict()
    for name in names:
        res[name] = tensor
    return res