<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def parseSetEnv(l):
 """ Parses a list of strings of the form "NAME=VALUE" or just "NAME" into a dictionary. Strings of the latter from will result in dictionary entries whose value is None. :type l: list[str] :rtype: dict[str,str] {} {'a': None} {'a': ''} {'a': 'b'} {'a': 'b'} {'a': 'b', 'c': 'd'} {'a': 'b=c'} Traceback (most recent call last):
 ValueError: Empty name Traceback (most recent call last):
 ValueError: Empty name """

    d = dict()
    for i in l:
        try:
            k, v = i.split('=', 1)
        except ValueError:
            k, v = i, None
        if not k:
            raise ValueError('Empty name')
        d[k] = v
    return d