def list_to_dict(in_list: T.List[str]) -> T.Dict[(str, str)]:
    result = {}
    it = iter(in_list)
    try:
        for i in it:
            result[i] = next(it)
    except StopIteration:
        raise TypeError('in_list parameter of list_to_dict must have an even length.')
    return result
def list_to_dict(in_list: T.List[str]) -> T.Dict[(str, str)]:
    result = {}
    it = iter(in_list)
    try:
        for i in it:
            result[i] = next(it)
    except StopIteration:
        raise TypeError('in_list parameter of list_to_dict must have an even length.')
    return result