def METHOD_NAME(x):
    if x is None: return {}
    if isinstance(x, dict): return x
    if isinstance(x, list):
        assert len(set(x)) == len(x)
        return {k:None for k in x}
    return {x: None}